ocr_pdf
Run OCR on a PDF to make scanned text selectable and searchable. Specify language codes like 'eng' or 'spa' for accurate detection.
Instructions
Run OCR on a PDF to make scanned text selectable/searchable. Accepts one or more language codes (e.g. "eng", "spa"). Large or image-heavy PDFs can take more than 60 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| languages | No | ISO 639-2/T 3-letter language codes to detect (e.g. ["eng"], ["spa"], ["eng","spa"]). Default: ["eng"]. | |
| input_file | Yes | Path to the PDF file to OCR. | |
| output_path | No | Optional output path. If it ends with the expected extension, the file is written there. If it is a directory, the file is placed inside with a timestamped name. Defaults to the same directory as the first input. |