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

Free Support Forum - aspose.com

Aspose compare Api is not generating correct revisions


I am using Apsose 16.12 version to compare two documents. Although difference document generated by comapare Api is correct but getting revisions from difference document is not giving correct revisions.

I have attached the document :
Doc1 - Sample Chinese.docx
Doc2- Chinese Modified.docx
Diff Doc - DifferenceDoc.docx

Sample code I am using :
doc1 = new Document(getFilePath(folder, file1));
doc2 = new Document(getFilePath(folder, file2));
doc1.save(getFilePath(folder, “_rev.docx”));
RevisionCollection revisionCollection = doc1.getRevisions();

List revisions = new ArrayList();
if (revisionCollection != null) {
for (int index = 0; index < revisionCollection.getCount(); index++) {

Above code provided generates the list of revisions in the difference document.
List of revisions contains one of the revision as deleted paragraph revision which is not actually deleted and is incorrect.
I have attached the snapshot of the paragraph which is shown deleted (error.PNG).

Can you please look into this problem and provide the possible solution for this issue. It will be very helpful.


Hi Shubhangi,

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-14770. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.