I’m using the latest version Aspose.Words for Java 19.11. Since 19.11 comparing two documents with a TOC that are the exact same fails with them being marked as unequal. 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 tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-19551. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.
Please also provide information about the exact Aspose.Words’ old version number for which there were no problems on your side previously.
You are right, the issue does not occur when using old 19.10 version of Aspose.Words. We have logged this information in our issue tracking system and will keep you posted on any further updates.