We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Converting Microword Document to PDF

Hi,

We had a requirement that we have a template with specific font styles for merge field values.

Using document.mailMerge.execute() we were able to merge the values and generate the Microsoft Document with required font styles.

But when treid to generate the PDF file we are facing the issue with font styles with Merge fields.

Please help us. Thanks.

Hi Prashanth,

Thanks for your inquiry. In case you are using an older version of Aspose.Words, I would suggest you please upgrade to the latest version (v14.11.0) from here and let us know how it goes on your side.

Also, please note that Aspose.Words requires TrueType fonts when rendering documents to fixed-page formats such as PDF, XPS or SWF. Please install the required fonts on your linux machine and refer to the following articles for details:

How Aspose.Words Uses True Type Fonts
How to Specify True Type Fonts Location
How to Install True Type Fonts on Linux

If you still face problem, please share following detail for investigation purposes.

  • Please attach your input Word document.
  • Please

    create a standalone/runnable simple Java application that demonstrates the code (Aspose.Words code) you used to generate
    your output document

  • Please attach the output Pdf file that shows the undesired behavior.