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

Free Support Forum - aspose.com

Load HTML file for conversion fail

Hello,
When trying to open HTML file for PDF conversion it fails with System.NullReferenceException .

The code is:
Aspose.Pdf.HtmlLoadOptions options = new Aspose.Pdf.HtmlLoadOptions();
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(fileNameHtml, options);

Here is link to download the problematic HTML file:

@CharactellAspose

We were able to replicate the issue in our environment while testing the scenario using 21.6 version of the API. Therefore, we have logged it as PDFNET-50141 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

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