Images are in wrong position/missing in PDF from DOCX with multiple sections


#1

Hi,

When converting a DOCX to PDF using Aspose, I noticed the images on different sections are mostly in wrong positions or missing, and an extra page was created.

Code:
var document = new Document(@".\test.docx");
document.Save(@".\test.pdf");

I’ve attached the test files and a screenshot for your reference.

test.zip (351.6 KB)
image.png (162.2 KB)

Please note the 4-page document has multiple sections because we wanted to layout the content controls in a specific way.

In any case, since Aspose is mimicking the Word behaviour. The output was expected to be the same as the Word ‘save as’ to PDF.

Could you please take a look?

Thanks,


#2

@ServerSide527,

Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-19519. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.


#3

@ServerSide527,

Regarding WORDSNET-19519, it looks like Aspose.Words currently does not support column balancing work properly (attached simplified document WhyNotBalancing.zip (53.3 KB)).

As a workaround you can use tables to position shapes side-by-side, or position them relative to the page.

We will keep you posted on any further updates and let you know when this issue will be resolved in future.