Password protect a pdf file in linux using pdftk

Email this to someoneShare on Google+Share on FacebookTweet about this on TwitterShare on LinkedIn

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:

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