Problem
You have a pdf file with sensitive information and you want to protect it with a password.
Solution
Install the pdftk if you haven’t already in your system:
1 |
sudo apt-get install pdftk |
And then run the following to prompt for a password before opening the file:
1 |
pdftk original.pdf output pswd_protected.pdf user_pw PROMPT |