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

Free Support Forum - aspose.com

Document.Compare does not notice changes in document using Java

We are using Aspose.Words 19.7 for Java.

We noticed that comparing input.docx to expected.docx returns no differences, i.e. no revisions, even though those two documents look different. Saving the compared document actually changes the document (output.docx) to expected.docx. Here’s the code:

Document doc = new Document("input.docx");
Document docB = new Document("expected.docx");
doc.compare(docB, "test", new Date());
int revs = doc.getRevisions().getCount();
doc.save("output.docx");

Can you have a look at that please?

documents.zip (39.3 KB)

@bmpi

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

We apologize for your inconvenience.

Is there any news on this?

@bmpi

We regret to share with you that the implementation of this issue has been postponed ( no estimate is available at the moment ). We will inform you via this thread as soon as this issue is resolved.