Skip to content

Instantly share code, notes, and snippets.

@geekman
Created January 18, 2021 08:42
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 geekman/24c7fa1d3103b1278deab4a09cc673f7 to your computer and use it in GitHub Desktop.
Save geekman/24c7fa1d3103b1278deab4a09cc673f7 to your computer and use it in GitHub Desktop.
permanently decrypts PDFs with qpdf
:: permanently decrypts PDFs and places them into the parent directory
for %f in (C:\dir\encrypted\*.pdf) do ^
qpdf.exe --decrypt --password=secretdoc "%f" "%~dpf..\%~nxf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment