By default, GroupDocs.Comparison can include or ignore Word Track Changes (revisions) during comparison. Use CompareOptions to control this behavior.
Example: Include Word revisions during comparison
Enable the comparison engine to detect and include tracked revisions (changes, comments, insertions, deletions) from Word documents when generating the comparison result. This ensures that any previously tracked changes are not lost during the comparison process.
importgroupdocs.comparisonasgcwithgc.Comparer("source-with-revisions.docx")ascomparer:comparer.add("target.docx")options=gc.CompareOptions()options.word_track_changes=True# include tracked revisionscomparer.compare("result.docx",options)
🔹Enable the comparison engine to detect and include tracked revisions (changes, comments, insertions, deletions) from Word documents when generating the comparison result. This ensures that any previously tracked changes are not lost during the comparison process.
Example: Ignore Word revisions during comparison
Compare only the final text and ignore previously tracked revisions so historical edits do not affect the diff.