How to set a password on pdf in Ubuntu


This one is super simple.

sudo apt-get install pdftk  
pdftk input-file.pdf output output-file.pdf userpw
mysupersecretpassword