protect_pdf
Protect a local PDF by setting an open password and optional permission profile, using the PDF4me API. Provide file path and password; choose output directory and file name as needed.
Instructions
Password-protect a local PDF using the PDF4me Protect API. Provide the file path, open password, and pdf_permission (for example All). Optionally specify output directory and file name.
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_path": "<file_path>",
"password": "<password>"
},
"name": "protect_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes | Open password for the protected PDF (required). | |
| file_path | Yes | Local path to the PDF file to protect. | |
| output_dir | No | ||
| pdf_permission | No | PDF permission profile string (for example All); matches API pdfPermission. | All |
| output_file_name | No |