Use aspose.pdf 21.12 to convert html files (contents of Chinese characters) to pdf garbled problem.
License license2 = new License();
try
{
license2.SetLicense("Aspose.Pdf.lic");
HtmlLoadOptions options2 = new HtmlLoadOptions();
Document pdfDocument2 = new Document(@"D:\demo\1.html", options2);
pdfDocument2.Save(@"D:\demo\1.pdf");
Console.WriteLine("successfully.");
}
catch (Exception ex){}
1.html Content:
<!DOCTYPE html>
<html>
<head><title></title></head>
<body>浏览、</body>
</html>
Output preview:
Snipaste_2021-12-31_19-51-53.png (2.5 KB)
Can you help me see how to solve this problem?