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

Free Support Forum - aspose.com

Repair PDF files using Aspose.PDF for .NET - Object reference not set to an instance of an object

I am receiving an “Object reference is not set to an instance of an object” error when attempting to save an Aspose.PDF.Document after calling Aspose.PDF.Document.Repair(). When I do not call repair, I can save the PDF document successfully.

This is occurring on Aspose.PDF version 19.4. I can only reproduce this with a specific PDF document.

@kanderson.imagesofti

Could you please share your sample PDF document with us along with complete sample code snippet. We will test the scenario in our environment and address it accordingly.

Definitely. Can you instruct me as how to upload a PDF to this support ticket?

@kanderson.imagesofti

Please use upload button in the post editor to upload the document. In case your document is of larger size, please upload it to Google Drive or Dropbox and share the link with us.
Upload_Files.png (8.9 KB)