GroupDocs.Comparison for .NET 26.9 Release Notes
This page contains release notes for GroupDocs.Comparison for .NET 26.9
GroupDocs.Comparison version 26.9 improves PDF comparison accuracy and performance, adds the ability to restrict external document resource loading, normalizes the order of deleted and inserted components in the diff output, and fixes several issues affecting Words, Slides, and PDF comparison.
Full list of changes in this release
| Key | Category | Summary |
|---|---|---|
| COMPARISONNET-4866 | Enhancement | Restrict external document resource loading via LoadOptions |
| COMPARISONNET-4897 | Enhancement | Normalize order of deleted and inserted components in the comparison diff output |
| COMPARISONNET-4892 | Enhancement | Improve PDF comparison performance for documents with character-level text fragments |
| COMPARISONNET-4896 | 🔧 Fix | Inline PDF comparison draws replacement text on top of the following line |
| COMPARISONNET-4893 | 🔧 Fix | Line breaks inside PDF table cells are lost in the comparison result |
| COMPARISONNET-3909 | 🔧 Fix | Fix “Page have not room to place a paragraphs” exception when comparing PDF documents |
| COMPARISONNET-2370 | 🔧 Fix | Improve accuracy of PDF comparison for documents with tables |
| COMPARISONNET-2294 | 🔧 Fix | Underlined text is not compared |
| COMPARISONNET-4887 | 🔧 Fix | NullReferenceException during Words files comparison |
| COMPARISONNET-4883 | 🔧 Fix | NullReferenceException during slides comparison |
Enhancements
Restrict external document resource loading via LoadOptions
LoadOptions now includes SkipExternalResources and WhitelistedResources to control whether external resources referenced by a document (for example, linked images) are loaded during comparison.
SkipExternalResources– whentrue(the default), external resources are not loaded. Set tofalseto allow loading external resources.WhitelistedResources– a list of resource names that are still allowed whenSkipExternalResourcesistrue.
var loadOptions = new LoadOptions
{
SkipExternalResources = true,
WhitelistedResources = new List<string> { "includepicture-field.png" }
};
using (Comparer comparer = new Comparer("source.docx", loadOptions))
{
comparer.Add("target.docx", loadOptions);
comparer.Compare("result.docx");
}