Got problem when covert word to PDF with chinese

Hello everyone,


I’m using temp licence to convert Word to PDF with code below:
License newjavalic = new License();
newjavalic.setLicense(new FileInputStream(licenseFile));
Document doc = new Document(“testWord.doc”);
doc.save(“out.pdf”);
When I deploy and run it in Tomcat on Windows it works well, but when I deploy and test with chinese document with Tomcat on Linux, chinese character can not be converted, it displays incorrect. the attached file is result after I convert it
Everyone help me.
Hi Phuc,

Thanks for your inquiry. Could you please attach your input Word document and Chinese font file(s) here for testing? We will investigate the issue on our end and provide you more information.

Best regards,

Hi Awais,


I have just attached testChinese.doc file, this is the original file before it was converted to testchinese.pdf file. the font is used in testChinese.doc is SunSim. please help me to check it again.

Hi Phuc,


Thanks for your inquiry. Please install the following fonts on the machine where you’re performing conversion to PDF:

  • SimSun
  • Times New Roman
  • Calibri

Also, please check the following article:
http://www.aspose.com/docs/display/wordsjava/How+Aspose.Words+Uses+True+Type+Fonts

I hope, this helps.

Best regards,

Hi Awais,


after install fonts it works well, thank you for your support.

Regards,
Phuc

Hi Phuc,


Thanks for your feedback. It is great you were able to resolve this issue on your end. Please let us know any time you have any further queries.

Best regards,