Output pdf cannot display chinese

I am testing Aspose.words in java.
I modified the demo program, so that it is connected to Sybase table with chinese characters. (UTF-8 encoding).
Overall, the program can export doc, docx and html documents and correctly display chinese chars.
However, I found the output pdf cannot display chinese. All chinese chars, fields label, and data fields, are displayed in rectangle box.
So, please help and looking forward to receiving your advice.

This message was posted using Email2Forum by sheliah.

Hello

Thanks for your request. During converting document to PDF Aspose.Words reads font files and creates subsets of fonts, which are used in PDF. Maybe the problem might occur because some of your fonts are not installed on the PC where you perform converting to PDF. Please make sure that all fonts which you are using in the document are installed.
Also could you please attach your input document here for testing?
Best regards,

Hi,

Thanks for your reply.

More details, from Aspose.words demo program, it read in document template file, data from table, then generated output file, say doc, docx, html and pdf. It is strange that ONLY output pdf got problem of display chinese.

With consider the fonts problem, I have already add below code:

PdfOptions pdfOpts = new PdfOptions();
pdfOpts.setTrueTypeFontsFolder("C:\\WINDOWS\\Fonts");

doc = new Document("MailingLabelsDemo.docx");
doc.saveToPdf(0, doc.getPageCount(), test.pdf ", pdfOpts);

But the output pdf still cannot display chinese.

So please help, if it require a fix in Aspose.word of java version, can you tell me when it can be solved, as our team is now in urgent program development and very soon will launch application to user.

Thank you very much.

Please find attached sample code

Hello

Thank you for additional information. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed. This problem does not occur in .NET version of Aspose.Words. Currently we are working on synchronizing Java and .NET versions of Aspose.Words. Once we finish this work all functionality which is supported in, NET version will be supported in Java version. Also you should note, converting to PDF is in beta at the moment. I will notify you as soon as converting to PDF in Aspose.Words for Java is out of beta.
Best regards,

Hi Support Team
Thx a lot for your help to take care our potential client in Hong Kong! Do you know if the quick fix will be avaialble soon?
Thx a lot for your support!
Martin
Idynamic Media
Hong Kong Reseller

Hello Martin,

Thanks for your inquiry. This issue will be fixed once we finish our work on synchronizing .NET and Java versions of Aspose.Words. You can learn more about our progress here:
https://blog.aspose.com/2011/02/24/autoporting-aspose.words-for-java-progress-24th-feb-2011
Hopefully the new version of Aspose.Words for Java will be released somewhere at the end of this month or at the beginning of the next month. You will be notified as soon as it is released.
Best regards,

Dear Support
I am wondering if you have any update?
Thx a lot for your help again!
Martin Fung
Idynamic Media
Hong Kong Reseller

Hello
Thanks for your request. We plan to release a production version of Aspose.Words for Java 10.0.0 in a month or so. But currently you can try using beta version Aspose.Words for Java 10.0.0.
You can download this version from here:
https://releases.aspose.com/words/java
Best regards,

We are happy to inform you that the first auto-ported version of Aspose.Words for Java is ready. This version supports converting documents to PDF. You can get it from here.

Best regards,
Aspose.Words team

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan