Created
July 20, 2012 16:07
-
-
Save k1000/3151588 to your computer and use it in GitHub Desktop.
PDF DRM password removal
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
#remove DRM http://ubuntuforums.org/showthread.php?t=884002 | |
gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=temp.pdf foo.pdf -c '.setpdfwrite' && mv temp.pdf foo.pdf | |
#remove password http://www.cyberciti.biz/faq/removing-password-from-pdf-on-linux/ | |
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment