OCR (offline)
pdf_ocrAdd an invisible OCR text layer to scanned PDFs using local Tesseract traineddata, returning recognition counts and confidence without extracted text.
Instructions
Add an invisible text layer to a scanned PDF using tesseract with locally installed traineddata. Done for: eng, rus. Recognised text is not returned, only counts and confidence.
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": {
"path": "<path>"
},
"name": "pdf_ocr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | ||
| path | Yes | ||
| langs | No | ||
| pages | No | 1-based page numbers. Omit for all pages. | |
| scale | No | render scale before OCR, default 2 |