We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Compare Word DOCX Files with Comments using Java

When I compared 2 document, position of comment on surround words was broken. http://joxi.ru/4Ak00oKFodgoxr

Document doc = new Document("..\\test.docx");
Document doc2 = new Document("..\\test2.docx");
doc.acceptAllRevisions();
doc2.acceptAllRevisions();
doc.compare(doc2, "3", new Date());
doc.save("..\\test3.docx");

I attached zip archive of test documentscomment-bug.zip (47.5 KB)

@vhostt,

We have also managed to reproduce this issue on our end and logged it with ID WORDSNET-22670. Your forum thread has been linked to this issue and you will be notified here as soon as it will get resolved in future. Sorry for the inconvenience.

The issues you have found earlier (filed as WORDSNET-22670) have been fixed in this Aspose.Words for Java 21.12 update.