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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"job_id": "<job_id>",
"owner": "<owner>",
"password": "<password>"
},
"name": "set_password"
}
}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 |