Password protect a pdf file in linux using pdftk


You have a pdf file with sensitive information and you want to protect it with a password.


Install the pdftk if you haven’t already in your system:

And then run the following to prompt for a password before opening the file: