How to embed font file in OpenXML Word document
Asked Answered
S

1

7

I'm building a Word document in OpenXML with C#.

One of the fonts I must use is a custom-made branded font. This font will not be available on customer machines.

Is it possible to embed font-file within .docx file and reference that font in font styles. If yes, how can this be done within C# SDK?

So far that does not seem to be possible, but I might have missed the documentation page somewhere.

p.s. I already have PDF with embedded fonts. Now I need the same looking Word document.

Skip answered 4/3, 2014 at 16:20 Comment(2)
did you find a solution for this?Ozoniferous
@Ozoniferous Nope, not possibleSkip
V
-2

Sounds like what you need is a .pdf. So unless it absolutely must be a .docx I think that's your best option.

Help on generating a .pdf in C# can be found here.

Ventriculus answered 4/3, 2014 at 16:39 Comment(1)
I already have PDF. Now client wants the same looking document in Word.Skip

© 2022 - 2024 — McMap. All rights reserved.