How-To: Remove a (known) password from a PDF file in Linux

I had a PDF the other day which required me to enter a password before viewing it, which is something I’d never seen before, so being a chancer I just slapped enter and it worked (i.e. there was no password, or more accurately the password was blank). However, keeping a file in that state is just stupid, so I wanted the “password” removed – and it turns out that it’s dead simple to do in Linux.

Two Stepper

  1. Install qpdf with synaptic or the command:
  2. Issue the following command:

    So, if your password protected pdf is called foo.pdf and the password is empty (i.e. “”) like in my case, you just issue something like this:

Job done!

Leave a Reply

Your email address will not be published.