Created
January 18, 2021 08:42
-
-
Save geekman/24c7fa1d3103b1278deab4a09cc673f7 to your computer and use it in GitHub Desktop.
permanently decrypts PDFs with qpdf
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
:: 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