mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
1.1 KiB
1.1 KiB
Compare two PDF files
Install and use diffpdf (preferred) or diff-pdf:
sudo pacman -S diffpdf
sudo zypper install diff-pdf
diffpdf file1 file2
As an alternative:
# create a pdf with the diff as red pixels
magick 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