flatten_pdf
Turns interactive PDFs into static, non-editable files, producing a new document while preserving the original.
Instructions
Flatten an interactive PDF into a static, non-editable PDF. Creates a new document; does not overwrite the original.
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": {
"documentId": "<documentId>"
},
"name": "flatten_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | No | Custom metadata to attach | |
| documentId | Yes | The source document ID to flatten | |
| preSignedUrlExpiresIn | No | Pre-signed download URL expiry in seconds (60–86400) |