Save comparison result in different format

On this page

Export the comparison result to a different format (e.g., PDF or HTML) by setting the desired output in CompareOptions.

import groupdocs.comparison as gc

with gc.Comparer("source.docx") as comparer:
    comparer.add("target.docx")

    options = gc.CompareOptions()
    options.result_document_format = gc.FileFormat.PDF  # e.g., export result to PDF

    comparer.compare("result.pdf", options)

Supported output formats depend on the source file type. Common targets include DOCX, PDF, and HTML.

🔹 Use case: Deliver a PDF diff to stakeholders while keeping DOCX for editing.

On this page

Close
Loading

Analyzing your prompt, please hold on...

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