Skip to content

Instantly share code, notes, and snippets.

@ceekz
Created July 12, 2012 15:25
Show Gist options
  • Save ceekz/3098857 to your computer and use it in GitHub Desktop.
Save ceekz/3098857 to your computer and use it in GitHub Desktop.
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