GroupDocs.Comparison for .NET 24.9 Release Notes

Full list of changes in this release

KeyCategorySummary
COMPARISONNET-4089FeatureShow comparing result of plain text document as a PDF
GROUPDOCSAPP-324FixComparison API. Broken response for CompareFiles
GROUPDOCSAPP-426FixComparison not works with PDF
GROUPDOCSAPP-296FixError with ‘pageNumber undefined’ when comparing two docx file
COMPARISONAPP-160FixComparer.GetChanges returns changes with zero PageNumber
COMPARISONNET-2815FixPDF comparison - output has formatting issues
COMPARISONNET-2949FixComparison shows changes in footer page numbering

Major Features

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

  • Implemented returning result of plain text documents comparison as a PDF
  • Fixed Comparison returning changes with zero PageNumber
  • Fixed output formatting issues on PDF
  • Fixed shows changes in footer page numbering

Saving comparison result of plain text documents as a PDF

Starting with version 24.9, we have implemented the ability to save the result of a plain text document comparison in PDF format. To use this feature, you must specify the path to the result file as PDF. Below is a code snippet that demonstrates how to use this feature.

using GroupDocs.Comparison;

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

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

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

more details could be found on documentation here.