简体   繁体   中英

How to embed font file in OpenXML Word document

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.

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM