Image positioning issue when converting from PDF to DOCX on Linux

Hello Support,

Our customer has reported this issue:

We already had Aspose.Words and Aspose.Pdf licenses and renewed them so I can access the latest versions of the Java libraries.
Unfortunately, I’ve run into issues using the latest versions (Aspose.Pdf 24.11) and had to revert back to the older versions we were using (Aspose.Pdf 20.12)

The main issue encountered is related to image positioning when converting from PDF to DOCX (version Aspose.Pdf 24.11).
Specifically, the positioning of image elements is different when running the same code on Linux (incorrect) vs MacOS (correct).
Reverting to 20.12 the positioning of image elements is correct on both Linux and MacOS.
I would appreciate any pointers you might have on how this could be resolved, as we’d like to use the latest versions.

Attached a minimal document that reproduces the issue, together with the output I receive on Linux, Ubuntu 22.04.
Notice the stripes/design on the right side is lost in the output and the image is misplaced.

Aspose.PDF for Java:

Document pdoc = new com.aspose.pdf.Document(inStream)
DocSaveOptions saveOptions = new com.aspose.pdf.DocSaveOptions()
saveOptions.setFormat(DocSaveOptions.DocFormat.DocX)
pdoc.save(outPath, saveOptions)
pdoc.close() 

We have paid licenses for both Aspose.Words and Aspose.PDF, but I think this bug is coming from Aspose.PDF.

sample_bug_aspose_image_location (1) (1).docx (153.9 KB)

sample_bug_aspose_image_location (1) (1).pdf (324.3 KB)

Thank you for any help you can provide.

Kind regards,
Edward


This Topic is created by alexey.butalov using Email to Topic tool.

@adjes

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-44581

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.