Skip to content

Instantly share code, notes, and snippets.

@ceekz
Created Jul 12, 2012
Embed
What would you like to do?
Unlock PDF with gswin32c for Windows
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