[NTG-pdftex] Creating identical PDF files with different pdfTeX runs

Martin Schröder martin at oneiros.de
Fri Mar 17 13:12:37 CET 2006


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


More information about the ntg-pdftex mailing list