Show Revisions

On this page

GroupDocs.Comparison allows you to compare and customize the visibility of revisions in the output document.

Revision is a collection of changes received when comparing documents using built-in Word tools.

By default, the visibility of revisions is enabled. To turn off the visibility of revisions, follow these steps:

  1. Instantiate the Comparer object. Specify the source file path or stream.
  2. Call the add() method. Specify the target file path or stream.
  3. Instantiate the CompareOptions object. Set the ShowRevisions property to false.
  4. Call the compare() method. Specify the CompareOptions object from the previous step.

The following code snippet shows how to disable the visibility of revisions:

const comparer = new groupdocs.comparison.Comparer(sourcePath);
comparer.add(targetPath);
const options = new groupdocs.comparison.CompareOptions();
options.setShowRevisions(false);
const resultPath = comparer.compare(outputPath, options);

The result is as follows:

Closed stateOpen state
Disable display Revisions

On this page