Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

HTML with multibyte characters don't convert to PDF properly

$
0
0
When I create a pdf document from html string, multibyte characters are missing in saved document,  see code below:

                    var pdf = new Aspose.Pdf.Generator.Pdf();
                    pdf.SetUnicode();
                    string html1 = " <div >TEST_中文文档资料_TEXT</div>";
                    pdf.ParseToPdf(html1);
                    //AsposePdfCreator.ConvertToWordDoc(pdf, html1, pdftype);
                    pdf.SetUnicode();
                    pdf.Save(@"c:\test2.pdf");

SetUnicode() does not help
I am using Aspose.pdf version 9.1
Am I doing somethisg wrong?
Thank you,
Alexei

Viewing all articles
Browse latest Browse all 3131

Trending Articles