Compare document generates incorrect output using Java

How reproduce: make the change at the end of the paragraph. In following the current one, make changes at the beginning. After the comparison, an additional paragraph is created with both changes.

Document doc = new Document("..\\1.docx");
Document doc2 = new Document("..\\2.docx");
doc2.acceptAllRevisions();, "3", new Date());"..\\out.docx");"..\\out.html", htmlSaveOptions); (257.9 KB)


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-21033 . 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-21033) have been fixed in this Aspose.Words for Java 22.3 update.