Show Revisions
Leave feedback
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:
- Instantiate the
Comparer
object. Specify the source file path or stream. - Call the
add()
method. Specify the target file path or stream. - Instantiate the
CompareOptions
object. Set theShowRevisions
property tofalse
. - Call the
compare()
method. Specify theCompareOptions
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 state | Open state |
---|---|
Disable display Revisions |
---|
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.