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.acceptAllRevisions();
document2.acceptAllRevisions();
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.