pdf-diff
pdf-diff copied to clipboard
output pdf
Thank you for the project. Stable and fast. The only problem is, I needed to have pdf, not png. So, I came to this solution.
pdf-diff before.pdf after.pdf | docker run -i dpokidov/imagemagick png:- -crop 294:207 -border 1x% +repage pdf:- > comparison_output.pdf
or without docker
pdf-diff before.pdf after.pdf | convert png:- -crop 294:207 -border 1x% +repage pdf:- > comparison_output.pdf
The rationale for docker is that relative crop is supported only in ImageMagic 7x.