GroupDocs.Comparison at a glance

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.

Platform independence

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 file formats

GroupDocs.Comparison for Python via .NET can operate 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 Page Layout: PDF

Images, Graphics & Diagrams

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

Other

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

Capabilities of GroupDocs.Comparison for Python via .NET

Seamlessly compare PDFs, Office documents, images, and a wide variety of other formats.

Feature icon

Intuitive Document Comparison

Examine and highlight differences between two documents.

Feature icon

Comparison of Multiple Documents

Inspect multiple documents for differences at the same time.

Feature icon

Extensive Format Support

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 Visual Previews

Create previews of comparison outcomes in image formats.

Feature icon

Text-based Content Comparison

Perform line-by-line, paragraph, word, or character comparisons to highlight changes.

Feature icon

Formatting Changes Detection

Identify alterations in document styles and formatting.

Feature icon

Customizable Metadata Handling

Retain metadata from the source or target files, or allow users to define new metadata.

Feature icon

Handle Password-Protected Files

Work with encrypted documents, or create secured documents protected with a password.

Feature icon

Focused Page Comparisons

Select and compare particular sections or individual pages of a document.

Feature icon

Manage Comment Visibility

Decide to reveal or conceal comments when examining the source document.

Code samples

Discover common scenarios for utilizing GroupDocs.Comparison for Python via .NET functionalities.

Comparing Documents with Password Protection

To compare documents that are secured 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