Very simple code:
Document doc1 = new Document("…\test.docx");
Document doc2 = new Document("…\test1.docx");
doc1.acceptAllRevisions();
doc2.acceptAllRevisions();
doc1.compare(doc2, "Me", new Date());
doc1.save("..\\test2.docx");
test.zip (44.0 KB)
Aspose compare wrong revisions for case in picture http://joxi.ru/RmzKKxJcYG44z2
if you remove coment, revision will be right.
Also aspose othen create create 2 revision on delete item from list:
1 remove list item(it rigth)
2 remove last comma from prev item(it wrong) or remove part of word if prev item start the same that delete item