Skip to content

Instantly share code, notes, and snippets.

@tmazur
Last active August 29, 2015 14:06
Show Gist options
  • Save tmazur/ef170ad8ad896e037e4d to your computer and use it in GitHub Desktop.
Save tmazur/ef170ad8ad896e037e4d to your computer and use it in GitHub Desktop.
Remove password protected PDF securities (print protection) using linux ghostscript
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPDFPassword=password -sOutputFile=OUTPUT.pdf -c .setpdfwrite -f input.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment