Skip to content

Instantly share code, notes, and snippets.

@gsportelli
gsportelli / pdfcompare
Created January 16, 2024 09:29
pdfcompare
#!/usr/bin/env bash
PDF_1="$1"
PDF_2="$2"
OUT_FILE="$3"
OUT_TMPDIR=$(mktemp -d)
cleanup() {
rm -rf "$OUT_TMPDIR"
}
trap 'cleanup' EXIT