Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
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