code_junkie

How to compare two PDF files?

Nov 11th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $ convert -density 150x150 -fill red -opaque black +antialias 1.pdf back%02d.png
  2. $ convert -density 150x150 -transparent white +antialias 2.pdf front%02d.png
  3. $ composite front01.png back01.png result01.png # do this for all pairs of images
  4.  
  5. #!/bin/sh
  6. RED=$'e'"[1;31m"
  7. GREEN=$'e'"[1;32m"
  8. RESET=$'e'"[0m"
  9. wdiff -w$RED -x$RESET -y$GREEN -z$RESET -n $1 $2
Add Comment
Please, Sign In to add comment