Skip to content

Instantly share code, notes, and snippets.

@douglascrp
Created December 9, 2018 01:20
Show Gist options
  • Save douglascrp/49bdbfc3ebe119525eb5abefdc4551be to your computer and use it in GitHub Desktop.
Save douglascrp/49bdbfc3ebe119525eb5abefdc4551be to your computer and use it in GitHub Desktop.
How to protect PDF file with QPDF
qpdf --encrypt "empty_or_password_open" "owner_password" 40 --print=y --modify=n --extract=n --annotate=n -- input.pdf output.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment