Password-protect a PDFPassed
Protect paper.pdf with the password hunter2 and save it as paper-locked.pdf.
deft pdf encrypt paper.pdf --new-password hunter2 -o paper-locked.pdf
Input
paper.pdf 992.5 KB · 14 pages



Output
paper-locked.pdf 943.8 KB
This PDF has no preview: it needs a password or cannot be read.
Automatic checks (2)
- pdf_encrypted: file = "paper-locked.pdf", encrypted = true
- pdf_pages: file = "paper-locked.pdf", pages = 14, password = "hunter2"








