Disable image comparison in PDF documents
On this page
GroupDocs.Comparison for Python via .NET can turn off image comparison in PDFs when you only care about text changes.
Set compare_images_pdf to False and choose image inheritance behavior.
import groupdocs.comparison as gc
with gc.Comparer("source.pdf") as comparer:
    comparer.add("target.pdf")
    options = gc.CompareOptions()
    options.compare_images_pdf = False
    options.images_inheritance_mode = gc.ImagesInheritance.TARGET
    comparer.compare("result.pdf", options)
🔹 Use case: Speed up PDF comparisons and avoid noise from embedded graphics.
The result is as follows:

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.