Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Object Reference Not Set error converting Pdf to Html

$
0
0
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
Ken

Viewing all articles
Browse latest Browse all 3131

Trending Articles