The two attached files are minimal reproductions based on real documents I received. If you examine the XML, you’ll see that one has table properties of the form
<w:tblPr>
<w:tblpPr w:leftFromText="187" w:rightFromText="187" w:vertAnchor="text"/>
</w:tblPr>
while the other table, which is otherwise identical, has no w:tblpPr
. When these two documents are compared, the resultant properties are as follows:
<w:tblPr>
<w:tblpPr w:leftFromText="0" w:rightFromText="0"/>
</w:tblPr>
This is incorrect; in a more complex document than those attached here those properties can cause the table to appear in the wrong position. The expected result is
<w:tblPr>
<w:tblPrChange>
<w:tblPr>
<w:tblpPr w:leftFromText="187" w:rightFromText="187" w:vertAnchor="text"/>
</w:tblPr>
</w:tblPrChange>
</w:tblPr>
i.e., an indication that the floating positioning properties changed.
This is using Aspose.Words for Java, 21.10.
left.docx (11.1 KB)
right.docx (11.2 KB)
this is tracked internally as #6235.