Free Support Forum - aspose.com

Word to Pdf Conversion - Retain the fonts used in word when its converted to pdf

Hi,

I am trying to convert a word document containing to pdf. If I have used “Times New Roman” font for the word document, and after conversion when I look at the document properties of the pdf, the it shows as “TimesNewRomanPS” and “TimesNewRomanPSMT”.

I tried different combinations with methods available in saveOptions like
saveOptions.setEmbedFullFonts(true);
saveOptions.setUseCoreFonts(true);
saveOptions.setEmbedStandardWindowsFonts(true);
saveOptions.setFontEmbeddingMode(PdfFontEmbeddingMode.EMBED_ALL);
, but it didn’t help.

Is there a way to retain the font after converting the word document to pdf. Or am I missing something in terms of understanding the font after conversion?

Thanks in advance,
Manohar G.N.

Hi Manohar,


Thanks for your inquiry. Pdf specification says that PostScript font names should be used. ‘TimesNewRomanPSMT’ is just a PostScript name of the corresponding TimesNewRoman font. This is the expected behavior and Aspose.Words outputs the font names to Pdf according to the specifications. If we can help you with anything else, please feel free to ask.

Best regards,