Free Support Forum - aspose.com

Stretched images after optimizing resources

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.

Hi Claudia,


Thanks
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-39268. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.