compress_pdf
Reduce PDF file size by bundling internal objects into compressed streams and stripping duplicate structures for smaller documents to store or share.
Instructions
Compacts and shrinks PDF file size by bundling internal PDF objects into compressed streams and stripping duplicate structures.
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": {
"pdf": "<pdf>"
},
"name": "compress_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Source PDF document as base64 data URI or public http/https URL | ||
| output_filename | No | Output filename (default: "compressed.pdf") | compressed.pdf |