pdf_compress_lossless_bw
Shrink a scanned PDF from freedailypro by turning pages into pure black-and-white JBIG2 pictures, each page coded exactly as read (no letter is ever swapped; safe for contracts and numbers). Colour and shading are lost and text on converted pages is no longer selectable. A page is converted only when that makes it at least 10% smaller; other pages (for example real-text pages) are copied untouched. Errors if the PDF is unreadable, password-protected, over 100 pages, or if 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_lossless_bw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Render resolution, 100 to 200. Default 150 | |
| fileBase64 | Yes | The PDF, base64 encoded (up to 20 MB, up to 100 pages) |