Skip to content

Instantly share code, notes, and snippets.

@ben-cohen
ben-cohen / diffpdf.sh
Last active February 16, 2022 13:56 — forked from brechtm/diffpdf.sh
Page-by-page PDF diff tool
#!/bin/bash
# usage: diffpdf.sh file_1.pdf file_2.pdf
# requirements:
# - ImageMagick
# - Poppler's pdftoppm and pdfinfo tools (works with 0.18.4 and 0.41.0,
# fails with 0.42.0)
# (could be replaced with Ghostscript if speed is
# not important - see commented commands below)