Null object reference error when converting Word to PDF


#1

When I attempt to convert the attached document from Word to PDF, I get an “Object reference not set to instance of an object” error on the pdf.Save(filename) command. Is there something about this document that is causing it to fail?

My code is:

doc.Save(“C:\testpdf.xml”, SaveFormat.FormatAsposePdf)
pdf.BindXML(“C:\testpdf.xml”, Nothing)
pdf.IsImagesInXmlDeleteNeeded = True
pdf.Save(“C:\testpdf.pdf”)


#2

Here’s the document.


#3

Dear dereka,

Thank you for considering Aspose.

This problem has been fixed in the latest hotfix. Please download it.