Checking that 2 pdf are identical (md5 a solution?)
Peter Otten
__peter__ at web.de
Sat Jul 24 13:34:36 EDT 2010
rlevesque wrote:
> Unfortunately there is an other pair of values that does not match and
> it is not obvious to me how to exclude it (as is done with the " /
> CreationDate" pair).
> and the pdf document is created using reportLab.
I dug into the reportlab source and in
reportlab/rl_config.py
found the line
invariant= 0 #produces
repeatable,identical PDFs with same timestamp info (for regression testing)
I suggest that you edit that file or add
from reportlab import rl_config
rl_config.invariant = True
to your code.
Peter
More information about the Python-list
mailing list