pdf_compress_smallest_bw
Shrink a scanned PDF to the smallest black-and-white file with JBIG2 symbol mode (letter shapes stored once, typically 3x smaller than lossless black-and-white). A letter can rarely be swapped for a look-alike (6 and 8 in tiny print): check important numbers. Colour is lost and text on converted pages is no longer selectable. A page converts only if it gets at least 10% smaller. Errors if the PDF is unreadable, password-protected, over 100 pages or no smaller file results.
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": {
"fileBase64": "<fileBase64>"
},
"name": "pdf_compress_smallest_bw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Render resolution, 100 to 200. Default 150 | |
| threshold | No | How alike two letter shapes must look to share one stored shape, 0.4 to 0.9. Default 0.85; higher is safer and slightly larger | |
| fileBase64 | Yes | The PDF, base64 encoded (up to 20 MB, up to 100 pages) |