![](https://secure.gravatar.com/avatar/d8110a8a8a97be0803549ea5ee2e638b.jpg?s=120&d=mm&r=g)
17 Mar
2006
17 Mar
'06
1:12 p.m.
On 2006-03-16 20:08:02 +0100, Hartmut Henkel wrote:
And in ImageMagick there is a -compose operator with Difference and Multiply option.
This is exactly what's needed. I tried this (compare sample2e with sample2e & lm): - render the pdfs with gs to png the resulting pngs are not large (ca. 150k/page for sample2e) and can be tested with cmp/md5sum for identity - generate diff images with "composite -compose difference -negate" this eats memory (1G at 600dpi), but produces what's needed. A pointer: http://jpdfunit.sourceforge.net/ "JpdfUnit is a framework for testing a generated pdf document with the JUnit test framework so JPdfUnit is a high level api." Best Martin -- http://www.tm.oneiros.de