Get only summary page
Leave feedback
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:
- Instantiate the Comparer object. Specify the source document path or stream.
- Call the add() method. Specify the target document path or stream.
- Instantiate the CompareOptions object. Set the ShowOnlySummaryPage property to
true
; - Call the compare() method. Specify the CompareOptions object from the previous step.
The following code snippet shows how to get only summary page.
try (Comparer comparer = new Comparer(sourcePath)) {
comparer.add(targetPath);
CompareOptions options = new CompareOptions();
options.setShowOnlySummaryPage(true);
final Path resultPath = comparer.compare(outputPath, options);
}
The result is as follows:
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.