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

Free Support Forum - aspose.com

Locks up

We are evaluating Aspose.PDF…

Have the following simple code… and it just locks up the app

string html = File.ReadAllText(_htmlFile);
Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();

Any ideas… the file is a 2 page HTML file


Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.Pdf.

I checked your issue with a test HTML file and it works fine. Please share your template HTML file with us to help us reproduce the issue.

Sorry for the inconvenience,


Here's a file.


Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the template file.

I checked your issue with the latest version of Aspose.Pdf for .NET and converting your html file throws “Object Reference not set to an instance of the object” exception. The issue has been registered in our issue tracking system with issue id: PDFNEWNET-34210. We will notify you via this forum thread regarding any updates.

Sorry for the inconvenience,

The issues you have found earlier (filed as PDFNET-34210) have been fixed in Aspose.PDF for .NET 22.5.