Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been given a PDF that is password-protected. I have the document-open password, which is enough to decrypt the contents and allow PDF readers to load the content correctly.

Is there a command-line tool that will perform this decryption process (based on the provided password) and write the decrypted PDF to a new file?

share|improve this question
up vote 3 down vote accepted

Yes. Qpdf should do what you want:

qpdf --password=thepassword --decrypt input.pdf output.pdf

You can find a download for Windows (assuming you have MinGW installed) if you go to Files->qpdf->latest version, then scroll down to find a description of the files (you can find a link to version 5.11, the most recent version as of 2014-3-28, here).

share|improve this answer
Thanks, qpdf works great! – MxyL Mar 28 '14 at 15:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .