protect_pdf
Encrypt a PDF with a password and set permission restrictions including disabling copy, print, and editing. Produces a new document without altering the original.
Instructions
Encrypt a PDF with a password and optional permission restrictions. Produces a new document; the original is unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | No | Custom metadata to attach | |
| algorithm | No | Encryption algorithm (default: AES256) | |
| documentId | Yes | The source document ID to protect | |
| disableCopy | No | Prevent copying text | |
| disablePrint | No | Prevent printing | |
| userPassword | No | Password required to open the PDF | |
| ownerPassword | No | Full-control owner password; required when using AES256 with a userPassword | |
| disableEditing | No | Prevent editing | |
| encryptMetadata | No | Encrypt PDF metadata (default: false) | |
| preSignedUrlExpiresIn | No | Pre-signed download URL expiry in seconds (60–86400) |