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");
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 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.