Last active
February 19, 2022 16:22
-
-
Save BlkPingu/1a462672e44e55805df501e0aab7340c to your computer and use it in GitHub Desktop.
Remove Passwords from all PDF in folder
This file contains hidden or 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
// single pdf | |
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=uncrypted.pdf -c .setpdfwrite -f target.pdf | |
// all pdf in folder | |
mkdir ../uncrypted && find . -type f -name "*.pdf" -exec gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=../uncrypted/{} -c .setpdfwrite -f {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment