Skip to content

Instantly share code, notes, and snippets.

@FelixWeichselgartner
Created June 1, 2021 09:30
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 FelixWeichselgartner/3a2a11e9d3a4b5d48a660c7f19985587 to your computer and use it in GitHub Desktop.
Save FelixWeichselgartner/3a2a11e9d3a4b5d48a660c7f19985587 to your computer and use it in GitHub Desktop.
Remove all pdf passwords from files in one folder with the same password.
# This script will remove all pdf passwords from files in one folder. They have to have the same password.
FILES="./*.pdf"
for f in $FILES
do
echo "Processing $f file..."
pdftk $f input_pw ENTER_YOUR_PASSWORD output "${f}_wp.pdf"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment