mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
731 B
731 B
Compare two PDF files
Install and use diffpdf (preferred) or diff-pdf:
sudo zypper install diff-pdf
As an alternative:
# create a pdf with the diff as red pixels
compare -verbose -debug coder $PDF_1 $PDF_2 -compose src /tmp/$OUT_FILE.tmp
# merge the diff-pdf with background PDF_1
pdftk /tmp/$OUT_FILE.tmp background $PDF_1 output $OUT_FILE