GroupDocs.Comparison for .NET 25.1 Release Notes
Full list of changes in this release
Key | Category | Summary |
---|---|---|
COMPARISONNET-4236 | Feature | Implement ability to turn off images comparison on PDF document |
COMPARISONNET-4258 | Fix | DOCM comparison issue : Error occurred in comparing word document |
COMPARISONNET-4265 | Fix | Customer request - issues comparing PPTX |
COMPARISONNET-4260 | Fix | Update 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.