If you are happy to have a small amount of content change (e.g. Use tiffcmp -l and count the number of lines of output to find any differences. To compare the generated TIFF files I found GNU tiffcmp (for windows part of GnuWin32 tiff) and tiffinfo did a good job. To generate images from PDF you can use Adobe PDF Library or the solution suggested at Best way to convert pdf files to tiff files. I think your best approach would be to convert the PDF to images at a decent resolution and than do an image compare. $ composite front01.png back01.png result01.png # do this for all pairs of images $ convert -density 150x150 -transparent white +antialias 2.pdf front%02d.png Here's how our script invokes the utilities (note that ImageMagick uses GhostScript behind the scenes to do the PDF->PNG conversion): $ convert -density 150x150 -fill red -opaque black +antialias 1.pdf back%02d.png I've been looking for a tool which would do the same on PDF/PostScript level.
0 Comments
Leave a Reply. |