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.
@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.
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.