Hi,
Aspose Words for Java (tested v15.10.0.0) does not correctly accept revisions in tables.
This test file contains a table with a row that has been tracked as deleted.
But that row contains a cell which is not deleted.
When accepting all track changes with Ms Word (v2010) the entire row is removed.
However Aspose removes only one cell.
How to reproduce:
- create new document in Ms Word
- insert a 2x2 table
- insert text into first cell (A1)
- activate track changes
- delete entire second row
- deactivate track changes
- select the first cell (A1)
- copy
- select the cell below cell (A2)
- paste
- save as rtf
- Run this code:
Document doc = new Document("test.rtf");
doc.acceptAllRevisions(); doc.save("result.rtf");
Please find attached:
- “result.png” is the result we get by accepting all revisions using Aspose (see sample code)
- “expected.png” which is the result we get by accepting all revisions using Ms Word.
Best regards,
Romain