Skip to content

Instantly share code, notes, and snippets.

@teebu
Forked from pstaender/remove_pdf_password.sh
Created January 12, 2018 21:52
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 teebu/1d5dc53f87c8143435a67e03d86f8221 to your computer and use it in GitHub Desktop.
Save teebu/1d5dc53f87c8143435a67e03d86f8221 to your computer and use it in GitHub Desktop.
Remove password from protected PDF file with GhostScript
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment