Chinese characters not rendering | docx to PDF | Aspose onPremise | Node.js

Hi @team,

I’ve a docx file that needs to be converted into pdf. This docx file has some chinese characters, but while converting it to a PDF using Aspose onPremise - Node.js. The chinese characters are rendering as rectangular boxes.

Attaching the docx file.
Ar Invoice Main Page Rev1.docx (19.0 KB)

@Uzair_Sayeed I cannot reproduce the problem on my side. Here is PDF document produced on my side using the latest 23.6 version of Aspose.Words: out.pdf (89.5 KB)

Could you please attach your problematic PDF output here for our reference? We will check it and provide you more information.

Also, please note, to build an accurate document layout the fonts are required. If Aspose.Words cannot find the fonts used in the document the fonts are substituted . This might lead into the layout and appearance difference. 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/
Please try either installing or providing the fonts required to render the document. This should resolve the problem.

@alexey.noskov, with aspose words cloud api, chinese chars are rendering jusst fine. Only with the on premise its not working.

I’ve went through some aspose forums with similar issue, there it was mentioned to upload the ‘dotumche.ttf’ on the storage account.

I did that but still the chars are not rendering,

@Uzair_Sayeed As I have mentioned, the fonts used in your original document are required to properly render the document. Please make sure the following fonts are available in the environment where the document is converted to PDF:

  • Calibri
  • Arial
  • Microsoft JhengHei
  • Yu Gothic UI