Free Support Forum - aspose.com

Generate pdf from doc template does not get the right font

Hi All,
I’ve got a problem with generating pdf with template. My template has Helvetica Neue font. But when I use the the com.aspose.words.Document to generate it does not produce the pdf with Helvetica Neue font.

document.save(baseFilePath + PDF_EXTENSION);

Thanks

Hi there,


Thanks for your inquiry. Please note your query relates to Aspose.Words for Java, so I am moving your query to related forum. My colleagues from Aspose.Words will look into the issue and will guide you appropriately.

We are sorry for the inconvenience.

Best Regards,
Hi Bang,

Thanks for your inquiry. Please note that Aspose.Words requires TrueType fonts when rendering documents to fixed-page formats (JPEG, PNG, PDF or XPS). You need to install fonts on the machine where you're converting documents to Pdf. Please refer to the following article:

How Aspose.Words Uses True Type Fonts

If you still face problem, please attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.

Hi all,
I have installed the font then it worked. Thanks

Hi Bang,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.