Get only summary page

On this page

GroupDocs.Comparison allows you to detect changes between source and target files and create the summary page only.

To get only summary page, follow these steps:

  1. Instantiate the Comparer object. Specify the source document path or stream.
  2. Call the Add method. Specify the target document path or stream.
  3. Instantiate the CompareOptions object. Set the ShowOnlySummaryPage property to true;
  4. Call the Comparer method. Specify the CompareOptions object from the previous step.

The following code snippet shows how to get only summary page.

using (Comparer comparer = new Comparer(sourcePath))
	CompareOptions options = new CompareOptions() {ShowOnlySummaryPage = true};
    comparer.Compare(resultPath, options);

The result is as follows:

On this page