GroupDocs.Comparison for .NET 24.7 Release Notes
Key | Category | Summary |
---|---|---|
COMPARISONNET-4023 | Improvement | Document compare not working as expected |
Major Features
Below is the list of most notable changes in release of GroupDocs.Comparison for .NET 24.7:
- Added new comparison option for setting comparison sensitivity for tables separately
Setting comparison sensitivity for tables
Starting with version 24.7, we have introduced a new comparison option, CompareOptions.SensitivityOfComparisonForTables, which allows you to set the comparison sensitivity property specifically for tables. This feature provides greater flexibility in configuring file comparisons, resulting in more accurate results. Below is a code snippet demonstrating how to use this feature.
using GroupDocs.Comparison;
string sourcePath = @"source.docx";
string targetPath = @"target.docx";
string resultPath = @"result.docx";
using (Comparer comparer = new Comparer(sourcePath))
{
// Add target document
comparer.Add(targetPath);
// Set sensitivity of comparison using CompareOptions
CompareOptions compareOptions = new CompareOptions();
compareOptions.SensitivityOfComparison = 50;
compareOptions.SensitivityOfComparisonForTables = 90;
// Compare and save comparison result
comparer.Compare(resultPath, compareOptions);
}
more details could be found on documentation here.