12 ms·
Although the PDF spec says that the ID field is "optional", a lot of PDF-producing apps put it in anyway, and the way OoO calculates the ID is basically what th
by userbinator 12y ago
Although the PDF spec says that the ID field is "optional", a lot of PDF-producing apps put it in anyway, and the way OoO calculates the ID is basically what the spec recommends, although it does say "Note that the calculation of the file IDs need not be reproducible. All that matters is that the file IDs are likely to be unique." This means that a CSPRNG would be a better choice, or even omitting the ID entirely.
The Author/CreationDate/Creator/Producer/etc. fields are also completely optional despite, once again, the insistence of applications to put them in. There are "PDF anonymisers" out there, and I've written one myself too, but not all of them remove all this information.
Interestingly enough there's a PDF from the NSA about removing metadata, which itself has most of the metadata removed, but not the ID nor creation/modification dates:
http://www.nsa.gov/ia/_files/app/pdf_risks.pdf http://www.nsa.gov/ia/_files/app/pdf_risks.pdf