Overview of GroupDocs.Comparison

An API designed for comparing widely used document types such as PDFs, Microsoft Office files, HTML, emails, or images within Python applications.

Illustration comparison

Comprehensive Output Reports

GroupDocs.Comparison detects alterations in document content (characters, words, paragraphs, tables, charts) as well as document styling changes. Users receive a detailed report highlighting the nature and count of changes.

Wide Range of File and Document Formats

The GroupDocs.Comparison API allows you to compare documents in formats such as PDF, HTML, email, Microsoft Office Word, Excel workbooks, PowerPoint files, OneNote notes, Visio diagrams, text documents, JPEG, PNG, GIF, BMP images, among many others.

Thorough Documentation and Code Samples

In-depth documentation and sample codes for the Comparison library across various platforms are readily available, simplifying the integration of the GroupDocs.Comparison API into your Python applications.

Select and Combine Changes into One Document

If you possess various versions of a document, you can selectively compile changes into a single new file using the GroupDocs.Comparison library.

Cross-Platform Compatibility

GroupDocs.Comparison for Python via .NET is compatible with the following operating systems, frameworks, and package managers.

Windows
macOS
Linux
NPM
NuGet
Amazon
Docker
Azure
VS Code
Eclipse
IntelliJ

Supported Document Formats

GroupDocs.Comparison for Python via .NET supports operations with the following file formats.

Microsoft Office & OpenDocument Formats

  • Word: DOCX, DOC, DOCM, DOT, DOTM, DOTX, RTX, RTF, TXT
  • Excel: XLSX, XLS, XLT, XLTM, XLSB, XLSM
  • PowerPoint: PPTX, PPT, POT, POTX, PPS, PPSX
  • Outlook: EML, EMLX, MSG
  • OneNote: ONE
  • OpenDocument: ODT, ODP, OTP, ODS, OTT
  • Fixed Layout: PDF

Images, Graphics & Diagrams

  • Raster Formats: BMP, GIF, JPG, JPEG, PNG
  • Medical Imaging: DICOM
  • Microsoft Visio: VSDX, VSD, VSS, VST, VDX
  • AutoCAD Drawings: DWG, DXF

Miscellaneous

  • Text Files: TXT
  • Programming Languages: CS, Java, CPP, JS, PY, RB, PL, ASM, GROOVY, JSON, PHP, SQL, LOG, DIFF, LESS, SCALA
  • Web Content: HTM, HTML, MHT, MHTML
  • e-Books: MOBI, DjVu
  • CSV Files: CSV

Capabilities of GroupDocs.Comparison for Python via .NET

Simplify the comparison of PDFs, Office documents, images, and various file types.

Feature icon

Intuitive Document Comparisons

Examine and highlight differences between two documents.

Feature icon

Comparison of Multiple Documents

Inspect multiple documents for differences at the same time.

Feature icon

Formats Supported

Compatible with over 50 commonly used document formats across various categories.

Feature icon

Accept or Reject Changes

Visualize changes with clarity, offering options for acceptance or rejection of edits.

Feature icon

Generate Image Previews

Save results of comparison as images.

Feature icon

Text Content Analysis

Review textual content by lines, paragraphs, words, or characters. Highlight the modifications.

Feature icon

Stylistic Analysis

Identify changes in formatting and stylistic elements.

Feature icon

Define Metadata

Maintain metadata from either original or target documents, or allow user-defined specifications.

Feature icon

Secure Document Protection

Work with encrypted documents, or protect the output document with a password.

Feature icon

Segment-Specific Comparison

Load and analyze specific segments or pages from a document.

Feature icon

Manage Comment Display

Control comment visibility while loading the source document.

Code samples

Explore typical use cases of GroupDocs.Comparison for Python via .NET operations

Comparing Password-Protected Documents

To compare documents that are protected with a password, you need to specify the password when loading the documents:

How to compare password-protected documents.

def run():

    # Load the source document and specify its password
    with groupdocs.comparison.Comparer("source.docx", new LoadOptions("1234")) as comparer:

        # Load the target document and specify its password
        comparer.add("target.docx", new LoadOptions("5678"));

        # Save comparison result to a specified file
        comparer.compare("result.docx");

Comparing multiple PDF documents.

GroupDocs.Comparison allows you to compare more than two documents. The operation is almost the same as when comparing two files. You just need to add more target files to the comparer class.

How to compare three or more documents.

def run():

    # Load the source document
    with groupdocs.comparison.Comparer(source.pdf") as comparer:

        # Specify the second file for comparison
        comparer.add("target2.pdf");

        # Specify the third file for comparison
        comparer.add("target3.pdf");

        # Save comparison result to a specified file
        comparer.compare("result.pdf");

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English