Skip to content

Instantly share code, notes, and snippets.

@souhaiebtar
Forked from pstaender/remove_pdf_password.sh
Last active May 27, 2020 08:56
Show Gist options
  • Save souhaiebtar/de5391af58226d38ab2250e5fd0ffb14 to your computer and use it in GitHub Desktop.
Save souhaiebtar/de5391af58226d38ab2250e5fd0ffb14 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