Shell Function to Remove all Metadata from PDF

· 54 words · 1 minute read

A handy function to remove all metadata from a PDF file. When done it will show all the remaining metadata for inspection. Needs pdftk and exiftool installed.

Combines commands from here and here. Good job, guys.

After adding this snippet in ~/.profile or copy and pasting it in the shell, you can just run