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

Free Support Forum - aspose.com

NullReferenceException during PDF/A conversion

Hi there,

we’re using Aspose.PDF to optimize resources from existing documents and convert them into the PDF/A standard. Currently we’re facing an issue that the library throws an NullReferenceException during the PDF/A conversion.

These are the steps we perform on the document:
  • Load
  • Optimize resources
  • PDF/A conversion
  • Persist
The optimization options are the following:

AllowReusePageContent = true,
CompressImages = false,
LinkDuplcateStreams = true,
RemoveUnusedObjects = true,
RemoveUnusedStreams = true,
UnembedFonts = false

If we deactivate the option “RemoveUnusedObjects”, the issue don’t occur.

Please find a sample project attached to this post to reproduce the problem.
Additionally i’ve attached the source document.

Could you provide us a solution for this issue?

Best regards.

Hi Claudia,

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

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-39270. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

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