GroupDocs.Comparison For .NET 17.1.0 Release Notes

Major Features

There are 7 new features and 7 improvements and fixes in this regular monthly release. The most notable are:

  • Introduced support of support for Apply/Discard changes in Comparison.Cells
  • Introduced support of support for Apply/Discard changes in Comparison.PDF
  • Introduced support of support for Watermarks, Hyperlinks, Comments, Text Box, Shapes in Comparison.Cells
  • Improved GroupDocs.Comparison.PDF comparison efficiency 

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
COMPARISONNET-1053GroupDocs.Comparison.PDF: Add support for Apply/Discard changesNew Feature
COMPARISONNET-975GroupDocs.Comparison.PDF: Add support for WatermarksNew Feature
COMPARISONNET-1065GroupDocs.Comparison.Cells: Add support for HyperlinksNew Feature
COMPARISONNET-1069GroupDocs.Comparison.Cells: Add support for CommentsNew Feature
COMPARISONNET-1072GroupDocs.Comparison.Cells: Add support for Text BoxNew Feature
COMPARISONNET-1063GroupDocs.Comparison.Cells: Add support of Apply/Discard changesNew Feature
COMPARISONNET-1073GroupDocs.Comparison.Cells: Add support for ShapesNew Feature
COMPARISONNET-1075GroupDocs.Comparison.Cells: Add borders for deleted and inserted cells and Range of cellsImprovement
COMPARISONNET-679Fix problem when moving modified table into new page and not deleting previous version of added tableImprovement
COMPARISONNET-1055Improve Trim paragraphs by pages after some change in absorbing paragraphsImprovement
COMPARISONNET-1080GroupDocs.Comparison.PDF: Improve comparison changes detection for ParagraphsImprovement
COMPARISONNET-1056Improve GroupDocs.Comparison.PDF comparison quality for images in header, footer, setting coordinates for components and paragraphs by pagesImprovement
COMPARISONNET-1074GroupDocs.Comparison: PDF: Set type change for paragraph runs after page breakBug
COMPARISONNET-1077Comparison.Cells: Fix cells appearance after critical update for Aligner comparer and Document builderBug

Public API and Backward Incompatible Changes

Compare Spreadsheet file formats with Settings

Update way to use Comparison Settings for Spreadsheet file formats

// Enter presentations paths
string sourcePath = "./source.otp";
string targetPath = "./target.otp";

// Create two streams of presentations

Stream sourceStream = File.Open(sourcePath, FileMode.Open, FileAccess.Read);
Stream targetStream = File.Open(targetPath, FileMode.Open, FileAccess.Read)

// Create instance of *GroupDocs.Comparison.Comparison* and call method *Compare*.
GroupDocs.Comparison.Comparison comparison = new GroupDocs.Comparison.Comparison();
CellsComparisonSettings settings = new CellsComparisonSettings();
settings.ShowDeletedContent = false;
settings.GenerateSummaryPage = true;

Stream result = comparison.Compare(sourceStream, targetStream, settings);


Compare Words file formats with Settings

Update way to use Comparison Settings for Words file formats

// Enter Words document paths
string sourcePath = "./source.odt";
string targetPath = "./target.odt";

// Create two streams of Words docuemnt

Stream sourceStream = File.Open(sourcePath, FileMode.Open, FileAccess.Read);
Stream targetStream = File.Open(targetPath, FileMode.Open, FileAccess.Read)

// Create instance of *GroupDocs.Comparison.Comparison* and call method *Compare*.
GroupDocs.Comparison.Comparison comparison = new GroupDocs.Comparison.Comparison();
WordsComparisonSettings settings = new WordsComparisonSettings();
Settings.ProcessHyperLinksAsAText = true;

Stream result = comparison.Compare(sourceStream, targetStream, settings);


Comparison example for Open Documents file formats

// Enter presentations paths
string sourcePath = "./source.otp";
string targetPath = "./target.otp";

// Create two streams of presentations

Stream sourceStream = File.Open(sourcePath, FileMode.Open, FileAccess.Read);
Stream targetStream = File.Open(targetPath, FileMode.Open, FileAccess.Read)

// Create instance of *GroupDocs.Comparison.Comparison* and call method *Compare*.
GroupDocs.Comparison.Comparison comparison = new GroupDocs.Comparison.Comparison();
Stream result = comparison.Compare(sourceStream, targetStream, settings);


COMPARISONNET-1080 Compare two paragraphs with method CompareWith.

// Creating Paragraphs
ComparisonParagraphBase sourceParagraph = new ComparisonParagraph();
sourceParagraph.Text = "This is source Paragraph.";
 
ComparisonParagraphBase targetParagraph = new ComparisonParagraph();
targetParagraph.Text = "This is target Paragraph.";
 
// Creating settings for comparison of Paragraphs
SlidesComparisonSettings settings = new SlidesComparisonSettings();
// Comparing Paragraphs
ISlidesCompareResult compareResult = sourceParagraph.CompareWith(targetParagraph, settings);


Save presentation to image via image folder

/using GroupDocs.Comparison.Slides;
using GroupDocs.Comparison.Slides.Contracts;
using GroupDocs.Comparison.Slides.Contracts.Comparison;
using GroupDocs.Comparison.Slides.Contracts.Enums;
using GroupDocs.Comparison.Common.Images;

//path to file
string filePath = "./presentation.pptx";
  
//path to image folder
string imageFolderPath = "./FolderForImage/";
  
//Open  document
ComparisonPresentationBase presentation = new ComparisonPresentationBase(filePath);
  
//Set settings
var settings = new ComparsionSlidesImageSettings();
  
//Save as Image
presentation.SaveAsImages(imageFolderPath, settings);