Skip to content

Instantly share code, notes, and snippets.

@quarkness
Last active August 29, 2015 14:07
Show Gist options
  • Save quarkness/8203003d20365bbaf944 to your computer and use it in GitHub Desktop.
Save quarkness/8203003d20365bbaf944 to your computer and use it in GitHub Desktop.
remove password from vodafone pdfs
#!/bin/bash
PASS=12324324
for f in VODA*pdf
do
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPDFPassword="$PASS" -sOutputFile=nopass-$f -c .setpdfwrite -f $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment