Free Support Forum - aspose.com

Chinese like fonts in the converted pdf(Aspose.Words for java)

Hi,

My client has purchased Aspose.Words for Java. I am using Aspose.Words for converting word document to PDF. During testing I have came across the following issue.

The fonts in the resulted PDF look like as it is written in Chinese font. I am uploading inputed word documents and the resulted pdf. Please fix this issue .This very urgent for me.


Thanks,
Shibu

Hi Shibu,


Thanks for your inquiry. In your case, I suggest you please use LoadOptions as shown in following code snippet. Hope this helps you. Please let us know if you have any more queries.

<span style=“font-size:
10.0pt;font-family:“Courier New”;color:#2B91AF;mso-no-proof:yes”>LoadOptions<span style=“font-size:10.0pt;font-family:“Courier New”;mso-no-proof:yes”> options = new LoadOptions();<o:p></o:p>

options.setLoadFormat(LoadFormat.DOC);

options.setEncoding(Charset.forName("UTF-8"));//ISO-8859-1

Document doc = new Document(MyDir + "in.doc", options);

doc.save(MyDir + "out.pdf");