GroupDocs.Comparison for .NET 25.1 Release Notes

Full list of changes in this release

KeyCategorySummary
COMPARISONNET-4236FeatureImplement ability to turn off images comparison on PDF document
COMPARISONNET-4258FixDOCM comparison issue : Error occurred in comparing word document
COMPARISONNET-4265FixCustomer request - issues comparing PPTX
COMPARISONNET-4260FixUpdate Aspose.Note to Aspose.Note.NoPdfImport 23.11

Major Features

Below is the list of most notable changes in release of GroupDocs.Comparison for .NET 25.1:

  • Added new comparison option to ignore changes based on similarity percentage for Slides
  • Implemented ability to turn off images comparison on PDF document
  • Fixed exception with comparing DOCM documents

Ignore changes based on similarity percentage for Slides

Starting with version 25.1, we have introduced the ability to set a tolerance percentage for style changes in the Slides format, allowing you to ignore changes that do not exceed the specified percentage. To use this feature, set IgnoreChangeSettings.Ignore in the CompareOptions class to true. To define the percentage, use the IgnoreChangeSettings.IgnorePercent property. Below is a code snippet demonstrating how to use this feature.

using GroupDocs.Comparison;

string sourcePath = @"source.pptx";
string targetPath = @"target.pptx";
string resultPath = @"result.pptx";

using (Comparer comparer = new Comparer(sourcePath))
{
    // Add target document
    comparer.Add(targetPath);

    // Add compare options
    CompareOptions compareOptions = new CompareOptions()
    {
        DetectStyleChanges = true,
        IgnoreChangeSettings = new IgnoreChangeSensitivitySettings { Ignore = true, IgnorePercent = 10 }
    }

    // Compare and save comparison result
    comparer.Compare(resultPath, compareOptions);
}

Disable image comparison in PDF documents

Starting with version 25.1, we have introduced the ability to set a tolerance percentage for style changes in the Slides format, allowing you to ignore changes that do not exceed the specified percentage. To use this feature, set IgnoreChangeSettings.Ignore in the CompareOptions class to true. To define the percentage, use the IgnoreChangeSettings.IgnorePercent property. Below is a code snippet demonstrating how to use this feature.

using GroupDocs.Comparison;

string sourcePath = @"source.pdf";
string targetPath = @"target.pdf";
string resultPath = @"result.pdf";

using (Comparer comparer = new Comparer(sourcePath))
{
    // Add target document
    comparer.Add(targetPath);

    // Add compare options
    CompareOptions compareOptions = new CompareOptions()
    {
        DetectStyleChanges = true,
        CompareImagesPdf = true,
        ImagesInheritanceMode = ImagesInheritance.Target
    }

    // Compare and save comparison result
    comparer.Compare(resultPath, compareOptions);
}

more details could be found on documentation here.