We are doing PDF to XPS and JPG conversions. On a few PDF files, we get an 'Object reference not set to an instance of an object' NullReferenceException when opening the PDF. Below is the code (the paste didn't take well, but you get the idea). The last line is where it throws the exception, and taking out the licensing portion doesn't matter. I have attached one of the failing PDF files. We are using version 8.7.0.0.
We are a paying customer and this is production code and is a high-priority issue. Can you help?
Aspose.Pdf.
License license = new Aspose.Pdf.License();
license.Embedded =
true;
license.SetLicense(
"Aspose.Total.lic");
Aspose.Pdf.
Document asposeDoc = null;
string fileName = @"C:\Users\q41775\Downloads\EC_8303-X-26238-001[1].pdf";
asposeDoc =
new Aspose.Pdf.Document(fileName);