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

Free Support Forum - aspose.com

StackOverflow and hang up while converting HTML to PDF

Hi,


we have a problem with converting HTML to PDF.
The attached project converts 3 HTML pages to PDF but only the last actually converts.
Selection 0 causes a StackOverflowException in mscorlib while saving.
Selection 1 seems to hang up while saving. No further output.
Selection 2 converts without any problem.
The HTML looks valid to me. Visual Studio and WebStorm say so, too.

Thanks in advance.

Hi Dirk,


Thanks for contacting support.

I have tested the scenario using latest release of Aspose.Pdf for .NET 11.4.0 in Visual Studio 2010 project running over Windows 7 x64 and I am unable to notice any issue. As per my observations, the HTML files are properly being converted to PDF format. For your reference, I have also attached the output files generated over my end. Please take a look.

[C#]

// load HTML file<o:p></o:p>

Document doc = new Document(@"C:\pdftest\ebanf.html", new HtmlLoadOptions(@"C:\pdftest\"));

// save output as PDF format

doc.Save(@“C:\pdftest\ebanf.pdf”);

Hi Nayyer,


that worked for us.
Tank you.

Hi Dirk,


Thanks for the acknowledgement.

We are glad to hear that your problem is resolved. Please continue using our API’s and in the event of any further query, please feel free to contact.