GroupDocs.Comparison for .NET 26.2 Release Notes

GroupDocs.Comparison version 26.2 includes multiple improvements to strengthen performance and stability, including enhancements for Word document comparison and a new dedicated options class.

Full list of changes in this release

KeyCategorySummary
COMPARISONNET-4684EnhancementSignificantly improved comparison performance for large-size Word documents
COMPARISONNET-4548EnhancementAbility to specify ChangeType directly in the GetChanges method
COMPARISONNET-4688BugFixed NullReference exception when comparing Word documents with WordTrackChanges = true
COMPARISONNET-4685EnhancementNew WordCompareOptions class for Word document comparison
COMPARISONNET-4295BugDocument comparison crashes when Word document contains multi-line field code formula

Major Features

Ability to specify ChangeType directly in the GetChanges method

You can now specify ChangeType directly when calling the GetChanges method to filter which types of changes are returned.

New WordCompareOptions class for Word document comparison

A new WordCompareOptions class has been created specifically for Word document comparison, allowing you to configure Word-specific compare options in a dedicated, type-safe manner.

using (var comparer = new Comparer("source.docx"))
{
    comparer.Add("target.docx");

    var options = new WordCompareOptions()
    {
        DetectStyleChanges = true,
        DisplayMode = WordCompareOptions.ComparisonDisplayMode.Revisions
    };

    comparer.Compare("result.docx", options);
}

Public API changes

CompareOptions has been refactored to separate document-type-specific settings. Word-specific options are now available in a dedicated WordCompareOptions class while remaining backward compatible with existing code.