Skip to content

Instantly share code, notes, and snippets.

@abehmiel
Forked from rohannog/gist:3861442
Created December 15, 2017 23:18
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 abehmiel/e5dd495ca6123fda20ee876d58a6cd8f to your computer and use it in GitHub Desktop.
Save abehmiel/e5dd495ca6123fda20ee876d58a6cd8f to your computer and use it in GitHub Desktop.
Decrypt pdf on command-line
qpdf --password=passwd --decrypt orig.pdf decrypted.pdf
#To input the password
read -s -p "Password: " password && qpdf --password=$password --decrypt orig.pdf decrypted.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment