Hi,
I am using Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert to convert HTML to PDF.
Unfortunately HTML with chinese characters will displayed as ??? after save to PDF.
May I know how should I resolved this?
Example code:
string htmlCode = "<div style='font-family: Lucida, Helvetica, Arial, sans-serif; color: #333;'><h1 style='font-size: 18px; text-align: center; color:#666;'>接收记录</h1></div>"
var filepath = HttpContext.Current.Server.MapPath("//filename.pdf");
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert(htmlCode, filepath,
true,
10 * 1000,
PdfPageSize.A4,
new PdfMargins(20),
LoadHtmlType.SourceCode
);
System.Diagnostics.Process.Start(filepath);
Thanks.