GroupDocs.Comparison for .NET 25.2 Release Notes
Full list of changes in this release
Key | Category | Summary |
---|---|---|
COMPARISONNET-4266 | Improvement | Implement file type as argument when opening document (stream or file) |
COMPARISONNET-4269 | Fix | Docm comparison issue |
COMPARISONNET-3991 | Fix | PDF comparison taking like forever |
Major Features
- Implemented ability to specify file type when comparing documents
- Fixed exception with comparing DOCM documents
- Fixed PDF comparison taking too long to complete
Specify file type for comparison
Starting with version 25.2, we have introduced the ability to manually specify the file type for comparison, allowing you to bypass auto-detection. To use this feature, set the FileType property in the LoadOptions class. Below is a code snippet demonstrating how to implement this feature:
using GroupDocs.Comparison;
using GroupDocs.Comparison.Options;
string sourcePath = @"source.docx";
string targetPath = @"target.docx";
string resultPath = @"result.docx";
// Create load options and set the file type
LoadOptions loadOptions = new LoadOptions();
loadOptions.FileType = FileType.DOCX;
using (Comparer comparer = new Comparer(sourcePath, loadOptions))
{
// Add target document
comparer.Add(targetPath, loadOptions);
// Compare and save comparison result
comparer.Compare(resultPath);
}
more details could be found on documentation here.