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

Free Support Forum - aspose.com

HTML to PDF System.ArgumentNullException


I am trying to convert the attached html file to pdf but aspose throw a null exception:

An exception of type ‘System.ArgumentNullException’ occurred in mscorlib.dll but was not handled in user code

Additional information: Value cannot be null.

It does not matter if I read the file and open as a stream I get the same error please fix this soon as we need this for our reporting engine.

var doc = new Aspose.Pdf.Document(“d:\webpage.html”, new Aspose.Pdf.HtmlLoadOptions());



Hi Karrim,

Thanks for your inquiry. I have tested your scenario with shared HTML document using Aspose.Pdf for .NET 11.0.0 and managed to observe the reported exception. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-39711 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

Best Regards,

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