Object Reference Not Set error converting Pdf to Html

Hi, I am attempting to use Aspose for Pdf .NET (eval) to convert a pdf file to HTML format. Below is the simple method I used to accomplish this. The Pdf.Document object is created OK, but I get an "Object reference not set to an instance of an object" exception when issuing the Save call.

Private Shared Sub ConvertPdfToHtml(inputFile As String, outputFile As String)
Dim doc As New Aspose.Pdf.Document(inputFile)
doc.Save(outputFile, Aspose.Pdf.SaveFormat.Html)
End Sub

I am using Aspose for Pdf .NET v9.6.0.

Can you offer any suggestions?

Thank you

Hi Ken,

Thanks for your inquiry. We will appreciate it if you please share your sample PDF document, so we will test the scenario and will guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Sure… please see the attachment

Hi Ken,

for using our API’s.

have tested the scenario and I am able to notice the same problem. For the sake
of correction, I have logged this problem as PDFNEWNET-37505 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.

OK. Please let me know when you have an update. Thanks much. Ken

Hi Ken,

As soon as we have some further updates, we will update you within this forum thread. Please be patient and spare us little time.

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