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

Free Support Forum - aspose.com

Exception during new Document()

Hi,

We got an exception for a specific file:

var inputDocument = new Document(documentName);

System.NullReferenceException: Object reference not set to an instance of an object.
at ..get_Values()
at Aspose.Pdf.EmbeddedFileCollection.??()
at Aspose.Pdf.Document.?()
at Aspose.Pdf.Document…ctor(String filename)

File which causes this error attached.

PS. It was converted from pdf to pdf/a with help of Aspose library too.
PPS. Aspose.Pdf 11.1.0.0 is used.

Hi Mikhail,


Thanks
for using our API’s.
<o:p></o:p>

I
have tested the scenario and I am able to notice the same problem that an exception is being generated when trying to load shared document. For the sake
of correction, I have logged this problem as PDFNEWNET-40201 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.

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