Lock, unlock or flatten a PDF
protect_pdflock: add a password needed to open it. unlock: remove a password you know. flatten: burn form fields and annotations into the page so they can't be changed.
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": {
"operation": "<operation>"
},
"name": "protect_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | A file the person attached in ChatGPT (filled in by ChatGPT). | |
| file_id | No | A FynePDF file_id from upload_file, import_file_from_url or an earlier tool. | |
| file_url | No | A public link to the file. | |
| password | No | ||
| operation | Yes | ||
| library_file_id | No | A file from the person's FynePDF Library (from list_library_files). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | ||
| files | Yes | ||
| steps | Yes | ||
| job_id | Yes | ||
| status | Yes | ||
| credits | Yes | ||
| message | Yes |