Skip to content

Instantly share code, notes, and snippets.

@ThomasLeister
Last active June 4, 2017 09:49
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 ThomasLeister/fb521c11c34a7e8ceca280a0f7e73d3c to your computer and use it in GitHub Desktop.
Save ThomasLeister/fb521c11c34a7e8ceca280a0f7e73d3c to your computer and use it in GitHub Desktop.
PDF Passwortschutz entfernen
### Execute in directory with .pdf files in it.
dnf install qpdf
mkdir out
find . -maxdepth 1 -type f -iname '*.pdf' -printf '%f\0' | xargs -0 -I '{}' qpdf --password="MYPASSWORD" --decrypt '{}' out/'{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment