Get Only Summary Page

GroupDocs.Comparison for Python via .NET can produce a result document that contains only the summary page — useful when you want to share change counts without exposing the underlying document content.

Example: Get only the summary page

from groupdocs.comparison import Comparer
from groupdocs.comparison.options import CompareOptions

def get_only_summary_page():
    with Comparer("./source.docx") as comparer:
        comparer.add("./target.docx")
        options = CompareOptions()
        options.show_only_summary_page = True
        comparer.compare("./result.docx", options)

if __name__ == "__main__":
    get_only_summary_page()

source.docx is the source file used in this example. Click here to download it.

target.docx is the target file used in this example. Click here to download it.

Binary file (DOCX, 8 KB)

Download full output

Use case: share a concise overview of differences without exposing full document content.

The result is as follows:

When to use which summary option

OptionResult contentUse it when
generate_summary_page = TrueResult document body + appended summary pageYou want both the diff and a high-level overview
show_only_summary_page = TrueOnly the summary page, no bodyYou want a concise overview without exposing full document content
extended_summary_page = TrueAdds per-section statistics to whichever summary mode is activeReporting to non-technical stakeholders who need the breakdown

The three flags can be combined — e.g., show_only_summary_page = True plus extended_summary_page = True produces a summary-only document with the richest statistics.

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.