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

Free Support Forum - aspose.com

Encoding probleam when convert txt to pdf


I meet a probleam when I try to convert text file to pdf.My text file is a Simplified Chinese file.I open the pdf which is converted from text file ,it cannot display the character correctly.The attachment is the source text file.

Thanks a lot !

Hi Rafeek,

Thank you for contacting support. We have saved your text file with UTF-8 encoding, and then converted to PDF format using the latest version 17.4 of Aspose.Pdf for Java API. We have attached this output PDF document to this reply which looks fine to us. Please refer to the help topic: Convert a Text File to PDF Format