Password-protect PDF
protect_pdfEncrypt a PDF with AES-256 so it needs a password to open; optionally block printing, copying or editing. The password is used once and not stored.
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": {
"file": "<file>",
"password": "<password>"
},
"name": "protect_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF to protect. | |
| password | Yes | Password needed to open the PDF (at least 4 characters). | |
| block_copying | No | ||
| block_editing | No | ||
| block_printing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | Facts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf). | |
| note | No | Anything the user should know about the result. | |
| text | No | Extracted text (pdf_to_text, ocr_pdf). | |
| files | Yes | Result files. Download them before expires_at; pass file_id to another tool to chain. |