Hi there,
We’re just upgrading the Aspose Words into 23.1.0 and update the license file as well. When we have tested the functionality in localhost, it was working fine. But, when we deployed the same in AWS Cloud environment, bullet points are not showing properly in the generated PDF document.
Please refer the below screenshot for the differences,
MicrosoftTeams-image (10).png (3.5 KB)
Thanks,
Jeyaprakash A.
@Jpsakthi Most likely the problem occurs because the fonts used in your input document are not available on the machine where document is converted to PDF. 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 lean where Aspose.Words looks for fonts:
https://docs.aspose.com/words/net/specifying-truetype-fonts-location/
If after installing the required fonts, the problem still persist on your side, please, attach your input and output documents here for testing. We will check the issue on our side and provide you more information.
1 Like
Hi @alexey.noskov,
But, while generating the word document, we could get the document with valid bullet symbols. Also, we are able to generate both the word & pdf document in localhost. It seems that, it was loading the fonts from the Lambda Layer and setting up the font source.
Could you please suggest some other possibilities?
Thanks,
Jeyaprakash.
@Jpsakthi Normally MS Word does not contain fonts in the file, the consumer application uses the fonts from the local machine. On other hand PDF document is fixed page format and it have the fonts required for displaying the file embedded into the document.
In your local environment the required fonts might be available and PDF document is generated properly. In the AWS Cloud environment the required fonts might be unavailable and PDF document is generated improperly.
Could you please attach your input and output PDF documents produced in your local environment and in the cloud?
Hi @alexey.noskov,
As per your suggestion, we’re trying to install the fonts in cloud environment, which was unavailable to convert the bullet symbols. Will check it on the environment and get back to you. Thanks for your workaround and it seems a valid one!
Thanks,
Jeyaprakash
1 Like
Hi @alexey.noskov,
Thanks for the solution. We have installed the relevant fonts in the cloud machine and now it’s working fine!
Thanks,
Jeyaprakash
1 Like