pdf_protect
Password-Protect PDF — Add a password to a PDF to prevent unauthorised opening or printing. [category: pdf]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Input PDF (max 25MB) | |
| password | Yes | Sets BOTH the user and owner password. May be omitted only when userPassword or ownerPassword is provided instead. | |
| encryption | No | Encryption strength. | aes256 |
| outputName | No | Optional custom output filename. | |
| permissions | No | Comma-separated permissions to ALLOW: print, copy, edit, modify, annotate, all. Empty = pdfcpu defaults. | |
| userPassword | No | Optional separate open (user) password. | |
| ownerPassword | No | Optional separate permissions (owner) password. |