Browse our Products
If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
Product Page | Docs | Demos | API Reference | Blog | Free Support | Temporary License
GroupDocs.Comparison for Python via .NET is a document comparison API that detects text, style, and formatting differences between two or more documents and produces a single result file with the differences marked up. It supports DOCX, PDF, XLSX, PPTX, ODT, HTML, TXT, images, and more — with full control over sensitivity, change styling, summary pages, and accept/reject workflows.
pip install groupdocs-comparison-net
from groupdocs.comparison import Comparer
with Comparer("source.docx") as comparer:
comparer.add("target.docx")
comparer.compare("result.docx")
The package is a self-contained Python wheel (~140 MB) that includes everything needed to compare documents. No external software installation is required - just pip install and start comparing. The wheel works across Python 3.5 - 3.14 on Windows, Linux, and macOS (Intel + Apple Silicon).
For a complete list, see supported formats.
from groupdocs.comparison import Comparer
with Comparer("source.docx") as comparer:
comparer.add("target.docx")
comparer.compare("result.docx")
from groupdocs.comparison import Comparer
from groupdocs.comparison.options import CompareOptions
with Comparer("source.docx") as comparer:
comparer.add("target.docx")
options = CompareOptions()
options.sensitivity_of_comparison = 75
options.detect_style_changes = True
options.generate_summary_page = True
comparer.compare("result.docx", options)
from groupdocs.comparison import Comparer
with Comparer("source.docx") as comparer:
comparer.add("target.docx")
comparer.compare()
for change in comparer.get_changes():
print(f"[{change.type}] {change.text}")
from groupdocs.comparison import Comparer
from groupdocs.comparison.options import ApplyChangeOptions
from groupdocs.comparison.result import ComparisonAction
with Comparer("source.docx") as comparer:
comparer.add("target.docx")
comparer.compare()
changes = comparer.get_changes()
# Reject the first change, accept the rest
changes[0].comparison_action = ComparisonAction.REJECT
apply_opts = ApplyChangeOptions()
apply_opts.changes = changes
comparer.apply_changes("result.docx", apply_opts)
from groupdocs.comparison import Comparer
with Comparer("source.docx") as comparer:
comparer.add("target1.docx")
comparer.add("target2.docx")
comparer.add("target3.docx")
comparer.compare("result.docx")
from groupdocs.comparison import Comparer
from groupdocs.comparison.options import LoadOptions, SaveOptions
src_load = LoadOptions(); src_load.password = "1234"
tgt_load = LoadOptions(); tgt_load.password = "5678"
save_opts = SaveOptions(); save_opts.password = "out-secret"
with Comparer("protected_source.docx", load_options=src_load) as comparer:
comparer.add("protected_target.docx", load_options=tgt_load)
comparer.compare("result.docx", save_options=save_opts)
import io
from groupdocs.comparison import Comparer
with open("source.docx", "rb") as src, open("target.docx", "rb") as tgt:
with Comparer(src) as comparer:
comparer.add(tgt)
comparer.compare("result.docx")
src_buf = io.BytesIO(source_bytes)
tgt_buf = io.BytesIO(target_bytes)
with Comparer(src_buf) as comparer:
comparer.add(tgt_buf)
comparer.compare("result.docx")
from groupdocs.comparison import Comparer
with Comparer("document.docx") as comparer:
info = comparer.source.get_document_info()
print(f"Pages: {info.page_count}, Size: {info.size}")
from groupdocs.comparison import Comparer, Color
from groupdocs.comparison.options import CompareOptions, StyleSettings
with Comparer("source.docx") as comparer:
comparer.add("target.docx")
options = CompareOptions()
options.inserted_item_style = StyleSettings()
options.inserted_item_style.font_color = Color.from_name("firebrick")
options.deleted_item_style = StyleSettings()
options.deleted_item_style.font_color = (200, 100, 50) # RGB tuple
options.changed_item_style = StyleSettings()
options.changed_item_style.font_color = "#0000FF" # hex string
comparer.compare("result.docx", options)
StyleSettings colour properties accept a Color, an RGB/RGBA tuple, a packed-ARGB int, a '#RRGGBB'/'#AARRGGBB' hex string, or a named colour string ("red", "firebrick", …).
from groupdocs.comparison import Comparer
from groupdocs.comparison.options import PreviewOptions, PreviewFormats
def create_page_stream(page_number):
return open(f"page-{page_number}.png", "wb")
with Comparer("source.docx") as comparer:
preview = PreviewOptions(create_page_stream)
preview.preview_format = PreviewFormats.PNG
preview.page_numbers = [1, 2, 3]
comparer.source.generate_preview(preview)
from groupdocs.comparison import Comparer
from groupdocs.comparison.options import CompareOptions
with Comparer("source.docx") as comparer:
comparer.add("target.docx")
options = CompareOptions()
options.calculate_coordinates = True
comparer.compare("result.docx", options)
for change in comparer.get_changes():
b = change.box
print(f"({b.x:.0f}, {b.y:.0f}) {b.width:.0f}x{b.height:.0f}: {change.text!r}")
Installing the wheel also puts groupdocs-comparison on PATH.
# Compare two documents (output format is inferred from the extension)
groupdocs-comparison compare source.docx target.docx result.docx
# Tweak the comparison
groupdocs-comparison compare source.docx target.docx result.docx \
--sensitivity 75 --detect-style-changes --generate-summary-page
# Password-protected sources / output
groupdocs-comparison compare src.docx tgt.docx out.docx --password "1234"
groupdocs-comparison compare src.docx tgt.docx out.docx --output-password "secret"
# Inspect a document
groupdocs-comparison info source.docx
# List every file type the engine recognises
groupdocs-comparison list-formats
# Apply a license up-front
groupdocs-comparison --license license.lic compare a.docx b.docx out.docx
# Equivalent module form
python -m groupdocs.comparison --version
Exit codes: 0 success, 2 user error (missing input), 1 runtime error.
The CLI covers single-pair comparison, document info, and the format catalogue. For workflows that need callbacks, in-memory streams, multi-target comparison in one Comparer, or accept/reject-individual-changes flows, drop into the Python API.
This package is designed for seamless integration with AI agents, LLMs, and automated code generation tools.
AGENTS.md in the package — AI coding assistants (Claude Code, Cursor, GitHub Copilot) auto-discover the API surface, usage patterns, and troubleshooting tips from the installed package{ "mcpServers": { "groupdocs-docs": { "url": "https://docs.groupdocs.com/mcp" } } }
https://docs.groupdocs.com/comparison/python-net/llms-full.txt.md to any docs URLThe API works without a license in evaluation mode with the following limitations:
To remove these limitations, apply a license or request a temporary license:
from groupdocs.comparison import License
License().set_license("path/to/license.lic")
Or set the environment variable (auto-applied at import):
export GROUPDOCS_LIC_PATH="path/to/license.lic"
| Issue | Platform | Fix |
|---|---|---|
System.Drawing.Common is not supported | Linux/macOS | apt-get install libgdiplus (Linux) or brew install mono-libgdiplus (macOS) |
| Garbled text or missing fonts in PDF | Linux | apt-get install ttf-mscorefonts-installer fontconfig && fc-cache -f |
The type initializer for 'Gdip' threw an exception (Intel macOS / Linux) | macOS x64 / Linux | brew install mono-libgdiplus (macOS) / apt install libgdiplus (Linux) |
Gdip initializer failing on macOS Apple Silicon when comparing PDF or images | macOS arm64 | Known upstream-side issue: comparison’s PDF/image diff path uses System.Drawing.Common, which doesn’t reliably load libgdiplus on mac-arm64 even when installed. DOCX/TXT/HTML/PPTX compares are unaffected. Workaround: target a non-rasterized output (DOCX/HTML), or run on macOS x64 / Linux / Windows. Engine-side fix pending. |
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT errors | Linux | Do NOT set this variable. ICU must be available. |
DllNotFoundException: libSkiaSharp | macOS | A stale system copy can shadow the bundled lib. Rename it: sudo mv /usr/local/lib/libSkiaSharp.dylib /usr/local/lib/libSkiaSharp.dylib.bak |
Also available for other platforms: .NET | Java | Node.js
Product Page | Docs | Demos | API Reference | Blog | Free Support | Temporary License
GroupDocs.Comparison GroupDocs.Total Python PyPi Document-Comparison Text-Diff PDF DOCX XLSX PPTX Change-Detection CLI Cross-Platform
Self-contained Python wheel of GroupDocs.Comparison 26.5 for Windows (x64). Compatible with Python 3.5-3.14. No external dependencies required. Compare documents and detect differences.
Added: 13/5/2026
Downloads:
File Size: 140.43MB
Self-contained Python wheel of GroupDocs.Comparison 26.5 for Linux (x64). Compatible with Python 3.5-3.14. Requires libgdiplus, libfontconfig1, and fonts (e.g. ttf-mscorefonts-installer). Compare documents and detect differences.
Added: 13/5/2026
Downloads:
File Size: 139.78MB
Self-contained Python wheel of GroupDocs.Comparison 26.5 for macOS arm64 (Apple Silicon). Compatible with Python 3.5-3.14. Requires mono-libgdiplus (brew install mono-libgdiplus). Compare documents and detect differences.
Added: 13/5/2026
Downloads:
File Size: 139.6MB
Self-contained Python wheel of GroupDocs.Comparison 26.5 for macOS amd64 (Intel). Compatible with Python 3.5-3.14. Requires mono-libgdiplus (brew install mono-libgdiplus). Compare documents and detect differences.
Added: 13/5/2026
Downloads:
File Size: 141.72MB
This contains the WHL package of GroupDocs.Comparison for Python via .NET
Added: 25/12/2025
Downloads:
File Size: 145.13MB
This wheel contains GroupDocs.Comparison for Python via .NET version 25.12, built for Windows and targeting the AMD64 architecture.
Added: 25/12/2025
Downloads:
File Size: 141.29MB
This wheel contains GroupDocs.Comparison version 25.12, compatible with Python 3 and optimized for Windows 32-bit systems.
Added: 25/12/2025
Downloads:
File Size: 139.47MB
This wheel contains GroupDocs.Comparison version 25.12, compatible with Python 3 and optimized for Linux 64-bit systems
Added: 25/12/2025
Downloads:
File Size: 153.19MB
This whl contains GroupDocs.Comparison version 25.6, compatible with Python 3 and optimized for MacOS 64-bit systems.
Added: 2/7/2025
Downloads:
File Size: 149.6MB
This wheel contains GroupDocs.Comparison version 25.6, compatible with Python 3 and optimized for Linux 64-bit systems
Added: 30/6/2025
Downloads:
File Size: 150.03MB
This wheel contains GroupDocs.Comparison for Python via .NET version 25.6, built for Windows and targeting the AMD64 architecture.
Added: 30/6/2025
Downloads:
File Size: 141.28MB
This whl contains GroupDocs.Comparison for Python via .NET version 24.12, built for Windows and targeting the AMD64 architecture.
Added: 13/12/2024
Downloads:
File Size: 88.57MB
This wheel contains GroupDocs.Comparison version 24.12.0, compatible with Python 3 and optimized for Windows 32-bit systems.
Added: 13/12/2024
Downloads:
File Size: 83.76MB
This whl contains GroupDocs.Comparison for Python via .NET version 24.7, built for Windows and targeting the AMD64 architecture.
Added: 18/7/2024
Downloads:
File Size: 86.21MB
This wheel contains GroupDocs.Comparison version 24.7.0, compatible with Python 3 and optimized for Windows 32-bit systems.
Added: 18/7/2024
Downloads:
File Size: 81.39MB