Possible bug - text box moves when saving Word doc to PDF

Hello. After a report from a customer, I think we’ve found a bug with the Aspose.Words conversion from a Word doc to a PDF. I can reproduce this against what I think is the latest Aspose.Words 20.11.0.0 release.

Specifically, there are various images and text boxes arranged at the top of a word doc. Aspose.Words loads the document, then saves it as a PDF (see sample code attached), but in the resulting PDF the lowest text box has lost its position and is now placed over the top of other image objects instead of underneath.

We’ve found a document-specific workaround for the customer, where they can tell Word to group the objects. When grouped in the Word doc, the objects retain their relative positions in the resulting PDF, but I think there’s still a likely bug in Aspose.Words. We’d appreciate it if this could be considered for further analysis.

aspose_words_text_box_moved.zip (3.6 MB)

The attached ZIP file contains a simplified example of the problem. It includes C# code from a .NET Console app, a Word document for conversion, a screenshot of the document open in Word 365 and shows the text box underneath the main header image. It also includes a copy of a PDF that I’ve generated with the supplied code, and which shows the text box shifted over the top of the nearby images instead of remaining underneath. (To run the code, it’ll be necessary to provide a valid Aspose.Words licence and adjust some file paths in the code to reproduce.)

Thanks for the help.

@mike.mcgavin

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-21396. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Tahir. Thanks for following it up.