Set PDF Password
set_passwordAdd password protection to an unprotected PDF file.
Creates a NEW job_id (with parent_job_id linking to the source). After the operation completes, call 'view_pdf' with the new job_id to display the result. Do NOT call this on an already-protected PDF — use change_password instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Owner password (grants full PDF permissions). | |
| job_id | Yes | Job ID of the unprotected PDF to protect (use the latest job_id). | |
| password | Yes | User password (required to open the PDF). | |
| session_id | Yes | Session ID that the job belongs to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| filename | Yes | ||
| mime_type | Yes | ||
| reply_note | Yes | ||
| session_id | Yes | ||
| download_url | Yes | ||
| instructions | Yes | ||
| parent_job_id | Yes |