Disable Image Comparison in PDF Documents
Leave feedback
On this page
GroupDocs.Comparison for Python via .NET can skip image comparison when diffing PDFs — useful when only text changes matter and embedded graphics would otherwise add noise to the result.
Use case: speed up PDF comparisons and avoid noise from embedded graphics.
The result is as follows:
When to disable image comparison
Disable image comparison when:
You only care about text edits. Legal redlines, contract markup, and editorial review workflows usually treat embedded figures as visual context, not diff content.
The PDFs differ only in cosmetic backgrounds. Scanned letterheads, watermarks, and stamps inflate the change count without surfacing meaningful differences.
You need a faster comparison. Image diffing is the most expensive part of PDF comparison; skipping it can shave seconds off each comparison and is essential at high throughput.
Keep image comparison enabled when:
The PDFs are image-heavy (scanned forms, technical drawings, presentations exported to PDF) — image diffs are the meaningful content.
You need pixel-accurate change overlays combined with calculate_coordinates = True.
ImagesInheritance values
When image comparison is disabled, images_inheritance_mode controls which document’s images appear in the result PDF:
Value
Behaviour
ImagesInheritance.SOURCE
The result PDF inherits images from the source document.
ImagesInheritance.TARGET
The result PDF inherits images from the target document. Useful when the target is the “newer” version and you want its visual layer.
ImagesInheritance.AVERAGE
A blended image is generated; appropriate only when the images differ only slightly.