HTML to PDF - textarea width causes System.StackOverflowException

Hello, I've upgrade to Aspose.Pdf 7.0 and now when converting HTML with the attached HTML file, Aspose.Pdf throws a System.StackOverflowException. The code is below. The same issue happens with setting the width inline as a style (style="width:95%") or as an attribute, width=500, at the very least it should ignore the value like most browsers and the previous version of Aspose.Pdf.

    string htmlFile = @"D:\ErrorGenerating.htm";
    System.IO.MemoryStream  licMSPDFKit = new System.IO.MemoryStream(System.Text.ASCIIEncoding.Default.GetBytes(licStringPDFKit));
    Aspose.Pdf.License LICPDFKit = new Aspose.Pdf.License();
    LICPDFKit.SetLicense(licMSPDFKit);
Aspose.Pdf.Generator.<span style="color: rgb(43, 145, 175);">Pdf</span> pdf = <span style="color: blue;">new</span> Aspose.Pdf.Generator.<span style="color: rgb(43, 145, 175);">Pdf</span>();
Aspose.Pdf.Generator.<span style="color: rgb(43, 145, 175);">Section</span> section = pdf.Sections.Add();
<span style="color: rgb(43, 145, 175);">StreamReader</span> r = <span style="color: rgb(43, 145, 175);">File</span>.OpenText(textBox1.Text.Trim());
Aspose.Pdf.Generator.<span style="color: rgb(43, 145, 175);">Text</span> text2 = <span style="color: blue;">new</span> Aspose.Pdf.Generator.<span style="color: rgb(43, 145, 175);">Text</span>(section, r.ReadToEnd());
r.Dispose();

text2.IsHtmlTagSupported = <span style="color: blue;">true</span>;

section.Paragraphs.Add(text2);

pdf.Save(htmlFile.Substring(0, htmlFile.LastIndexOf(<span style="color: rgb(163, 21, 21);">"."</span>)) + <span style="color: rgb(163, 21, 21);">".pdf"</span>);<pre style="background: white; color: black; font-family: Consolas;"> </pre></pre></pre>

Hi Nixon,


Thanks for using our products.

I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as
PDFNEWNET-33852. We
will investigate this issue in details and will keep you updated on the status
of a correction.

We
apologize for your inconvenience.

The issues you have found earlier (filed as PDFNEWNET-33852) have been fixed in Aspose.Pdf for .NET 10.1.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.