Password-protect a PDF
pdf_protectEncrypt a PDF with AES-256 to require a password for opening. Processing stays local, and the password is never transmitted or recoverable.
Instructions
Encrypt a PDF with AES-256 so it cannot be opened without the password. Only AES-256 is offered — 40-bit and 128-bit are classed as weak crypto. The password is used locally and never transmitted; it also cannot be recovered, so it must be stored somewhere safe. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Replace the output file if it already exists | |
| input | Yes | Path to the input PDF | |
| noCopy | No | Disallow text/graphic extraction (accessibility extraction stays permitted) | |
| output | Yes | Path to write the protected PDF | |
| noPrint | No | Disallow printing (enforced by the reader, not the encryption) | |
| noModify | No | Disallow editing and form filling | |
| password | Yes | Password required to open the document |