We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Missing font when converting word to pdf- need help!

I’m currently facing a big problem with Aspose.Words save to PDF, it works fine on Windows, but when the same code runs on Solaris the PDF file is missing all chinese fonts, each chinese character is replaced by a blank square. :(The sample code looks like this:

Document doc = new Document("/u02/doc/document.doc");
FontSettings.setFontsFolder("/u02/fonts/", false);
doc.save("/u02/gen/document.pdf", SaveFormat.PDF);

The code runs without error.
I’ve uploaded all the necessary font file to folder /u02/fonts/
I’m sure that all the folder is present, and has been given sufficient permission.
Also, I’m using Aspose.Words
Please take a look at the two pdf file screen capture I attached.
I’m looking forward to your reply.
Thanks and best regards.

Hi Wang,

Thanks for your inquiry. Please share document for testing purpose.

Hi imran,
I reuploaded all the font file, then it works fine.
Maybe its because file upload corruption…
Sorry bothering you, problem solved.


Thanks for the additional information. It is perfect that you managed to resolve the problem on your side. If we can help you with anything else, please feel free to ask.

Best Regards,

Hi Wang,
Thanks you very much for your feedback. It is great to hear that you managed to resolve it on your own end. You are always welcome and please feel free to ask if you have any query in future.
We always welcome constructive response from our customers.