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

Free Support Forum - aspose.com

HTML render issue

I would like to render a HTML formated string like this to a pdf :

test
test
test
test
test
test
test

the code
------------------------------------
Pdf pdf = new Pdf();
Section section = new Section(pdf);
pdf.Sections.Add(section);

string htmlCode = "

test test test test test test test

";
section.Paragraphs.Add(new Text("Text with IsHtmlTagSupported = false and UseTextInfoStyle = false : #$NL#$NL"));
section.Paragraphs.Add(new Text(htmlCode));
section.Paragraphs.Add(new Text("#$NLText with IsHtmlTagSupported = true and UseTextInfoStyle = true : #$NL"));
section.Paragraphs.Add(new Text(htmlCode) { IsHtmlTagSupported = true, UseTextInfoStyle = true });
section.Paragraphs.Add(new Text("Same Html in IE 8.0 : #$NL"));

Aspose.Pdf.Generator.Image asposeImg = [print screen from IE8];

section.Paragraphs.Add(asposeImg);

string filename = @"d:\LayoutIssueWithHtml.pdf";
pdf.Save(filename);
-----------------------------------

The issue is that rendering is not like IE8.

See attached pdf file.

We use actually Version 8.1.0.0

Hi there,

Sorry for the inconvenience faced. I've managed to reproduce the reported issue on my side and logged the issue in our bug tracking system for further investigation and resolution as PDFNEWNET-35478. I've also linked your request to this issue and you will be notified via this thread as soon as it is resolved.

Please feel free to contact us for any further assistance.

<span style=“font-size:10.0pt;line-height:115%;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:Calibri;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>Best Regards,