Hi All,
I generate Thai language in pdf file. I use Aspose pdf for Java version “aspose-pdf-10.3.0.jar”.
I found Thai font is not print on pdf content.
Could you please investigate this problem for me?
Thank you.
(file result in attachment)
Sample HTML source code
title
ทดสอบภาษาไทย
หฟหกดฟาห่กสาด่ฟหสกดา
หฟหกดฟาห่กสาด่ฟหสกดา
Hi there,
Thanks for your inquiry. I have converted your shared HTML to PDF document with new DOM approach using Aspose.Pdf for Java 10.3.0 over Win 7 64 bit. I am unable to notice the issue. Please test the scenario with suggested code, it will resolve the issue. If issue persists then please share some more details for further investigation.
Document pdfDocument = new Document(myDir + "ThaiFont.HTML", new HtmlLoadOptions());
pdfDocument.save(myDir + "ThaiFont_out.pdf");
We are sorry for the inconvenience.
Best Regards,
Thank you Tilal Ahmad Sana.
It is my mistake. Problem is I create file encoding is ASCII and copy and paste text UTF-8 into it. As a result the program will not generate Thai language.
Hi there,
Thanks for your feedback. It is good to know you have manged to resolve the issue.
Please keep using our API and feel free to ask any question or concern, we will be more than happy to extend our support.
Best Regards,