ocr_document
Convert scanned PDFs and images (PNG, JPEG, WebP, BMP, TIFF) into recognised text per page when files have no embedded text layer.
Instructions
OCR a scanned PDF or image (PNG/JPEG/WebP/BMP/TIFF) and return the recognised text per page. Use this when a PDF has no embedded text layer (convert_pdf_to_markdown will tell you) or when extracting text from screenshots, photos of documents, receipts and forms. Limited to 30 pages per call — narrow with 'pages'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL of the document to fetch and convert. Leave empty when passing file_base64 instead. | |
| pages | No | 1-based page selection like '1,3-5'. Empty means all pages. | |
| filename | No | Original filename with extension (e.g. 'report.docx'). Used as a format hint when content type cannot be detected automatically. | |
| password | No | Password for encrypted PDFs. Empty for normal files. | |
| file_base64 | No | Base64-encoded file content (for documents not reachable by URL). Decoded size limit: 30 MB. Leave empty when passing url instead. |