Shell Function to Remove all Metadata from PDF

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

Leave a Reply

Your email address will not be published.