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 issues that images, which are added to a document, are strechted after the optimization of the resources.
This are the steps we perform on the document:
- Load
- Optimize resources
- PDF/A conversion
- Persist
- Load
- Add image to each page
- 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 “AllowReusePageContent”, the issue don’t occur.
Please find a sample project attached to this post to reproduce the problem.
Additionally i’ve attached the source and the outcoming document. You can find strechted image on pages 5,6,7,8,9 and others.
Could you provide us a solution for this issue?
Best regards.