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

Free Support Forum - aspose.com

Document comparison result is differ from Ms Office

Hello. I’am trying to compare 2 documents using aspose.words for java 19.1:

Document document1 = new Document(“upload.docx”);
Document document2 = new Document(“upload_draft_190117_2001.docx”);


document1.compare(document2, “USER”, new Date());

document1.save(“compared1.docx”, SaveFormat.DOCX);

In aspose i’am geetting: http://prntscr.com/m8mza4
In msoffice i’am getting: http://prntscr.com/m8n0hu
As you can see the second paragraph has been removed and inserted back as a new one. In ms office i see no paragraph insertion/removal.

files.zip (32.2 KB)

Results are quite different - could you check, please.


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