Encrypt PDF
Protect a PDF with an open password and an owner password, choosing the AES key length and what readers may do (print, copy, edit, annotate, fill forms, assemble).
Command in the PDF toolkit · id ooa.pdf/encrypt · 13 inputs (2 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | PDF file. | |
| Target | File | Yes | Encrypted PDF to create. | |
| User password | Credential | No | Password needed to open the PDF; anyone may open it when empty. | |
| Owner password | Credential | No | Password needed to change permissions; a random one nobody knows when empty, so the permissions hold. | |
| Allow printing | Boolean | No | true | Allow printing. |
| Allow copy | Boolean | No | true | Allow copying text and images. |
| Allow modify | Boolean | No | true | Allow changing the content. |
| Allow annotations | Boolean | No | true | Allow adding comments and annotations. |
| Allow fill forms | Boolean | No | true | Allow filling in form fields. |
| Allow assembly | Boolean | No | true | Allow inserting, rotating and deleting pages. |
| Allow accessibility | Boolean | No | true | Allow screen readers to extract the text. |
| Key length | Number | No | 256 | AES key length in bits: 256 (recommended) or 128 for older readers. |
| Overwrite | Boolean | No | true | Replace the target when it already exists; false stops with PDF.EXISTS. |