pdf_flatten
Merge interactive PDF elements into page content and save a flattened copy, so forms, annotations, and layers render consistently across viewers.
Instructions
Flattens a PDF by merging interactive elements into the page content.
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": {
"input": "<input>",
"output": "<output>"
},
"name": "pdf_flatten"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the PDF to flatten. | |
| output | Yes | Path to save the flattened PDF. |