Skip to content

Instantly share code, notes, and snippets.

@kjlubick
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjlubick/5e17c905b64dd545af81 to your computer and use it in GitHub Desktop.
Save kjlubick/5e17c905b64dd545af81 to your computer and use it in GitHub Desktop.
Decrypting a password-encrypted pdf (Windows)

This works even if the pdf is password protected with a user password (instead of an owner password), but you must have the password. It won't recover the password, just decrypt it.

  1. Download pdfcrypt1.0.zip from http://soft.rubypdf.com/software/pdfcrypt
  2. Put the encrypted pdf in the same directory as pdfcrypt.exe (and rename it to something w/o spaces like enc.pdf)
  3. Execute .\pdfcrypt.exe enc.pdf output.pdf decrypt [password] which will decrypt the pdf to output.pdf.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment