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

Frank Küster frank at debian.org
Wed Mar 15 14:07:16 CET 2006


Hi,

we (i.e. a couple of Debian developers, taking up old ideas of each
individual and the tests in
http://tug.org/svn/texlive/trunk/Master/support/tests/) are trying to
implement some automated testing of pdf and dvi creation by pdftex.
Possible applications are regression tests for the binary, for
distributions (changed font setup etc.), or for package authors ("does
the new version still cooperate with hyperref?").

For this, it would be great if it were possible to create identical pdf
files in subsequent runs of pdfTeX.  With 

\pdfinfo{/CreationDate (1980-09-09)}
\year=1980 \month=9 \day=9 \time=10
\pdfcompresslevel0

I get pdf files that can be compared, but only after some grepping:

	egrep -a -v '/BaseFont|/FontName|/UniqueID|/ID|/CreationDate' $< > $@

With dvipdfmx (and perhaps with newer pdfTeX versions than the one in
teTeX) /CMap or something like this needs to be excluded, too.


Is it possible to achieve identical pdf files directly, by adding the
proper commands, or would it be possible to add this feature?

TIA, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)



More information about the ntg-pdftex mailing list