Formatting issue of Word To PDF

Hi,

We are facing the formatting issue in some Word to PDF Conversion on Live Environment and working fine on development environment. We have cross checked the Aspose Word and PDF dll all are the same version as below
aspose.words.dll 21.9.0.0
Attaching word and pdf both the screenshot of document conversion differences.

After Conversion on Development Env.png (300.4 KB)

After Conversion on Live Env.png (247.4 KB)

Main Word Document.png (182.5 KB)

@lkendre The problem might occur because the fonts used in your input document are not available on the machine where document is converted to PDF. The fonts are required to render document. If Aspose.Words cannot find the font used in the document, the font is substituted. This might lead into fonts mismatch and document layout differences due to the different fonts metrics. You can implement IWarningCallback to get notifications when font substitution is performed.
Please see our documentation to learn where Aspose.Words looks for fonts:
https://docs.aspose.com/words/net/specifying-truetype-fonts-location/

If after providing the required fonts the problem still persists, please attach your input and output documents here for testing. We will check the issue and provide you more information.

hi,

Thanks for your prompt response.

As you mentioned, we had installed the font ‘Book Antiqua’ on server but it doesn’t work, but while we changes font in document to ‘Calibri’ it worked as expected. So it was confirmed that the issue related to font.

@lkendre If possible, could you please attach your original input document and Book Antiqua font here for testing. We will check the document conversion on our side and provide you more information.