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.