Comparing Documents
Leave feedback
GroupDocs.Comparison offers a wide surface for controlling how comparisons run and how the result is rendered. The CompareOptions class lets you tune behaviour across the following dimensions:
- What gets compared —
compare_bookmarks,compare_variable_property,compare_document_property,header_footers_comparison,compare_images_pdf. - How sensitively —
sensitivity_of_comparison,sensitivity_of_comparison_for_tables,detalisation_level. - Which changes to surface —
show_inserted_content,show_deleted_content,show_only_changed,show_revisions,detect_style_changes. - Visual styling —
inserted_item_style,deleted_item_style,changed_item_style,mark_nested_content,mark_changed_content,mark_line_breaks,leave_gaps. - Coordinate output —
calculate_coordinates,calculate_coordinates_mode. - Result document properties —
paper_size,password_save_option,original_size. - Summary reporting —
generate_summary_page,extended_summary_page,show_only_summary_page.
For full details on individual options, see the topic pages below.
The pages here are grouped by intent:
Core flows
- Compare documents — the foundational two-document comparison.
- Compare multiple documents — multi-target compare in one pass.
Format-specific
- Compare Word documents
- Compare PDF documents
- Compare JSON documents
- Compare Markdown documents
- Compare bookmarks in Word documents
Customize the comparison
- Adjusting comparison sensitivity
- Customize changes styles
- Set shape color independently of font color
- Show gap lines instead of changes
- Disable image comparison in PDF documents
- Specify file type for comparison manually
- Compare variables and document properties
Accept or reject changes
- Accept or reject detected changes — pick which differences to apply.
- Accept or reject revisions — process Word Track Changes revisions.
- How to merge source code files — apply the accept/reject pattern to source code.
Inspect changes
- Get list of changes
- Get changes coordinates
- Get source and target text from files
- Get comparison result as a Document object
Summary pages
Word-specific revisions
- Compare documents
- Compare Word documents
- Compare PDF documents
- Compare multiple documents
- Compare Markdown documents
- Compare JSON documents
- Accept or reject changes
- Accept or reject revisions
- Adjusting sensitivity
- Customize changes styles
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.