Created
November 2, 2017 13:45
-
-
Save twerp/a273e6e10373449d93e1ac95099876c6 to your computer and use it in GitHub Desktop.
Remove protection ("encryption") from a PDF doc
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
@echo off | |
FOR %%a IN (*.pdf) DO call unprotect.bat "%%a" |
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
@echo off | |
rem ** echo %1 | |
qpdf --decrypt %1 temp.pdf | |
del %1 | |
ren temp.pdf %1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment