Create an AES-256 encrypted PDF with separate open and owner passwords.
Inputs and settings
- PDF file (
file, Text File reference, required). Connect an unsigned, unencrypted PDF. - Open password (
openPassword, Text Credential reference, required). Connect a General or Cryptography Credential. - Owner password (
ownerPassword, Text Credential reference, required). Connect a different General or Cryptography Credential. - Reader permissions (
access, Text). Choose Allow editing (full, default) or Read only (read-only). Read only sets the document’s print, copy, and edit flags to blocked for readers using the open password. Enforcement depends on the PDF viewer. - Fire (
fire). Begins processing when the workflow reaches the block.
Outputs
- Result PDF (
file, Text File reference). Save the encrypted copy with a Files block. - Fire (
fire). Emitted once the result is available.
Example and recovery
Prepare two Credential outputs in the same workflow run. Connect them separately and keep each password between 12 and 127 UTF-8 bytes. An open-password holder can read the protected PDF. The owner password can remove the protection. Store the owner password somewhere authorized users can recover it.
This block requires the locally installed qpdf executable configured in the package setup. It processes PDFs of at most 32 MiB and 500 pages. The source and passwords are passed to local processes. Passwords are never displayed in the block or included in child-process command arguments.
