-
-
Save morsdyce/d705257c3005d6fc3fdfb678cefa6145 to your computer and use it in GitHub Desktop.
bash script to bulk remove password from (pdf) files in current directory using qpdf
This file contains 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
#!/usr/bin/env bash | |
for f in * | |
do qpdf --password=THE_PASSWORD --decrypt --replace-input $f; | |
done | |
# brew install qpdf | |
# for executable file run: chmod u+x decrypt-pdf.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment