Elsevier - Mander

That’s where you print the downloaded PDF to a new PDF. New hash and same content, good luck tracing it back to me fucko.

Now that this is known, It’s not enough to remove metadata from the PDF itself. Each image inside a PDF, for example, can contain metadata.

There are multiple ways of removing ALL metadata from a PDF, here are most I know of.

It will be slow-ish and probably make the file larger, but if you’re sharing a PDF that only you are supposed to have access to, it’s worth it. MAT or exiftool should work.

Removing metadata from a PDF

What commands must I issue irreversibly to remove all metadata from foo.pdf? Assume embedded images are already clean. I got the impression from https://gist.github.com/hubgit/6078384 that exiftoo...

Unix & Linux Stack Exchange
Wouldn’t printing the PDF to a new PDF inherently strip the metadata put there by the publisher?

Good question. I believe “Print to PDF” isn’t actually “printing” it page by page as if it was a physical printer, but rather just saving the loaded PDF to a PDF file locally.

I’m not an expert in this field, but you can ask on StackExchange, or ask the author of MAT and exiftools, or do it yourself by making a PDF with a jpg file with your metadata, and then extract the image and let us know here - it would be useful information that I can’t find via search engines. I’m using a smartphone so I can’t do it, but if you do, note from the linked SE page is you won’t be able to extract the original file extension, so if you use your own .jpg with your own exif data, rename to .jpg when finished (I believe exif is handled differently based on file type).

There are multiple tools to add exif data to an image but the exiftool website has some good easy examples for our purpose.

exiftool -artist=“Phil Harvey” -copyright=“2011 Phil Harvey” YourFile.jpg

(do this as the first step before adding to the PDF)

How to extract images from a PDF in their original format

I'm using pdfimages -j bar.pdf /tmp/image to extract images from a PDF. My objective is to get them in their raw state as they were added. So If it was a .tif I'd like to get a .tif, if it's a jp...

Stack Overflow