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

Free Support Forum - aspose.com

Exception during new Document()


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 is used.

Hi Mikhail,

for using our API’s.

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.