Last active
December 15, 2017 23:18
-
-
Save rohannog/3861442 to your computer and use it in GitHub Desktop.
Decrypt pdf on command-line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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