Unlock PDF
unlock_pdfSave a copy of an encrypted PDF without its password, for files you are allowed to open. Provide the current password; a wrong one returns an error and writes nothing.
Instructions
Save a copy of an encrypted PDF without its password, for a file the user is allowed to open. The current password is required; a wrong password returns an error and writes nothing. Use protect_pdf to add a password. Returns the saved path; the input is not 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": {
"file": "<file>",
"password": "<password>"
},
"name": "unlock_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file (absolute, or relative to the working directory). | |
| output | No | Where to save the result. Defaults to a new file next to the input. | |
| password | Yes | The PDF's current password. |