Tuesday, January 21, 2014

Add a Password to a PDF

Silly reminder for self. To add a password to a PDF:
pdftk infile.pdf output outfile.pdf userpw password
Obviously, you need to install pdftk to do this.


Many places you see online say it has to be "user_pw", which is also what the pdftk manpage says, but the underscore appears to be optional.

No comments:

Post a Comment

Comments welcome, but they are expected to be civil.
Please don't bother spamming me. I'm only going to delete it.