Created
July 12, 2012 15:25
-
-
Save ceekz/3098857 to your computer and use it in GitHub Desktop.
Unlock PDF with gswin32c for Windows
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
set ttt=%1 | |
set tt=%ttt:~0,-4% | |
gswin32c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sFONTPATH=%windir%/fonts;xfonts;. -sPDFPassword= -dPDFSETTINGS=/prepress -dPassThroughJPEGImages=true -sOutputFile="%tt%_noPW.pdf" %1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment