aspose-words / Aspose.Words-for-Java

Aspose.Words for Java examples, plugins and showcases
https://products.aspose.com/words/java
MIT License
401 stars 206 forks source link

Sympol ① not converted in the pdf file #110

Closed andrew97s closed 1 month ago

andrew97s commented 1 month ago

hi : i use the aspose to convert word file into pdf file (linux), and found out that the sympol ① not converted , but then i try it with windows , it converted just fine. so if there is a way to make it work in linux too ?

the sympol in word file

the sympol in pdf file with linux [Uploading abnormalSympol.docx…]()

the sympol in pdf file with windows

AlexNosk commented 1 month ago

@andrew97s Most likely, the problem occurs because the font used for rendering the problematic glyphs is not not available in the environment where the document is converted to PDF. If Aspose.Words cannot find the fonts used in the document the fonts are substituted. This might lead into the layout differences due to differences in fonts metrics. You can implement IWarningCallback to get a notification when font substitution is performed. The following articles can be useful for you: https://docs.aspose.com/words/java/specify-truetype-fonts-location/ https://docs.aspose.com/words/java/install-truetype-fonts-on-linux/

if after installing the required fonts the problem still persist. Please attach your input and output documents here for our reference, Unfortunately, screenshots does not allow to analyze the issue.

PS: The main place for getting support is Aspose.Words support forum.

andrew97s commented 1 month ago

i use the IWarningCallback to found that some fonts didn't exists in linux enviroment, and i install it , things worked out !
thanks !