-
-
Save abehmiel/e5dd495ca6123fda20ee876d58a6cd8f 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