Last active
February 6, 2020 20:54
-
-
Save Tyxz/36791815cafe5882adbfc1293b222e9c to your computer and use it in GitHub Desktop.
Decrpyt all pdf in folder and its sub dirs. Use it with: decrpyt.sh [password] [[_safe] [_safe]] or just decrpyt.sh [password]. [_safe] is if you secured pdf looks like: blub_safe.pdf.
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
#!/bin/bash | |
for file in ./**/*$2.pdf; do | |
qpdf --decrypt --password=$1 "$file" "${file/$3.pdf/.pdf}"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment