pdf_ocr
Extract text from scanned PDFs without a text layer. Use Tesseract OCR on selected pages, languages, and DPI settings.
Instructions
OCR scanned PDF pages into text using Tesseract. Slower than pdf_read but works on PDFs without a text layer. Capped at 10 pages per call.
Args: source: Local file path or direct http(s) URL to a PDF. pages: Page selection like '1-5'. Default first page. language: Tesseract language code(s), e.g. 'eng', 'eng+deu'. dpi: Render resolution before OCR (150-300, default 200). max_chars: Character cap for the result (0 = default cap).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| pages | No | 1 | |
| source | Yes | ||
| language | No | eng | |
| max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |