Skip to content

Instantly share code, notes, and snippets.

@jasperf
Created June 27, 2014 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasperf/32ee626b09db2308101f to your computer and use it in GitHub Desktop.
Save jasperf/32ee626b09db2308101f to your computer and use it in GitHub Desktop.
Removing pdf security limitations so you can copy text or edit the pdf document with ghostscript. This is a really easy command line way to (re)gain control over a pdf's content #hacks #pdf http://www.commandlinefu.com/commands/view/4345/remove-security-limitations-from-pdf-documents-using-ghostscript
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -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