I build a PDF document from a LaTeX source file as part of static Dwebsite generation, but every run of pdflatex outputs a file that hashes to a different IFPS Content ID. This triggers spurious regeneration of the root CID. Can pdflatex
generate a PDF that is binary-equivalent to previous runs (assuming an unchanged input file) so the PDF output hashes to the same CID?
The pdflatex manpage doesn't list any options that appear relevant. Per http://theoval.cmp.uea.ac.uk/~nlct/latex/pdfdoc/pdfdoc/pdfdoc.html, I have added something like this to the top of the LaTeX file:
\pdfinfo{
/Producer (pdfTeX)
/Author ()
/Title ()
/CreationDate (D:20040502195600)
/ModDate (D:20040502195600)
/PTEX.Fullbanner (Generated with pdfTeX)
}
Comparing the files in hexdiff shows deltas in an /ID property that looks like a GUID. This property doesn't appear to be modifiable by the \pdfinfo block. Is there any way to hardcode or disable the generation of this property?