According to the QPDF source I was reading it had this quote about pdfs:
// PDF spec says %%EOF must be found within the last 1024 bytes of
// the file. We add an extra 30 characters to leave room for the
// startxref stuff.
However, I cannot find any information regarding this in the PDF 1.7 specification. I found a couple places on the internet that also mentioned this though.
My question is: is this true and if so, where is this specified that %%EOF will be in the last 1024 bytes?