OptimizeResources() throwing error

I am receiving a null reference exception when calling optimize resources on a document. I am using Aspose.Pdf 8.5.0.


Document doc = new Document(“problem.pdf”);
doc.OptimizeResources();
doc.Save();
I have attached the problem document.

Hi John.


Thanks for contacting support.

I have tested the scenario and I am able to
notice the same problem. For the sake of correction, I have logged this issue
as PDFNEWNET-35921 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 PDFNEWNET-35921) have been fixed in Aspose.Pdf for .NET 8.7.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.