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

Free Support Forum - aspose.com

HTML to PDF Java | aspose.PDF 18.10| conversion lacks Chinese characters

HtmlLoadOptions options = new HtmlLoadOptions();
String inputEncoding = options.getInputEncoding();
System.out.println(inputEncoding);
options.setInputEncoding(“UTF-8”);
Document document = new Document( “D://htlx.html”, options);
document1.save( “D://htlx.pdf”)
htlx (2).zip (255.6 KB)
Can API set the system font for exporting PDF? I am using Windows 10 system, JDK1.8, aspose-pdf-18.10.jar
I use the PDF file exported from windows 10 system and Java environment. What font do I need to install? How to set the specified font for exporting pdf

@liuanxv

If you are facing this issue with latest version of API then you can set the path for required fonts before converter start process.

FontRepository.addLocalFontPath("d:/fonts/Times/");