Invalid docx after saving

I have a particular document containing a rectangle-shape which results in a corrupt docx document when saving.
Used Aspose Words for Java version 17.6

Example code:

doc = Document('521688.docx')'521688-saved.docx')

When I try to open 521688-saved.docx with Microsoft Word, the document cannot be opened and the following error is shown:

521688-saved.docx could not be opened
Undeclared prefix.
Location: /word/document.xml, line: 1, column: 3040 (26.3 KB)


Thanks for your inquiry. 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-15575. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.


The issues you have found earlier (filed as WORDSNET-15575) have been fixed in this Aspose.Words for .NET 17.8 update and this Aspose.Words for Java 17.8 update.