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

Free Support Forum - aspose.com

Document.compare with TOC fails in 19.11

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

See also the attached test documents.

documents.zip (34.4 KB)

@bmpi,

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.

Thank you for your answer. The previous version was 19.10.

@bmpi,

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.

The issues you have found earlier (filed as WORDSNET-19551) have been fixed in this Aspose.Words for .NET 19.12 update and this Aspose.Words for Java 19.12 update.