Output PDF not retaining Font styles from Word template

Posted by: grapecity on 11 July 2024, 11:22 am EST

    • Post Options:
    • Link

    Posted 11 July 2024, 11:22 am EST

    I’m applying some Google fonts (ie. Noto Sans, Noto Serif) to content in my Word template. I’ve tried out some of the methods explained in https://developer.mescius.com/document-solutions/dot-net-word-api/docs/online/font.html but this seems to only work when I’m assigning the font to content that is programmatically added onto the template.

    In my implementation, there is no content that is added programmatically; I’m processing Word templates as is, but these additional fonts in my Word templates are getting stripped out. Is there a method or setting to keep these fonts in the output PDF?

  • Posted 17 July 2024, 7:43 am EST

    Hi,

    Apologize for the delay. You need to programmatically set the font on the Template text as per your requirement. Then you can process the Word Template to achieve your requirements.

    Please refer the attached sample for the same: EmbedFonts.zip

    Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels