OCR
AI-generatedSummary
Extract text from a PDF or image file using Tesseract OCR, with options for language, output format, and detailed page control.
Inputs
- binaryPropertyName (required) — The name of the binary property on the incoming item containing the PDF or image data (base64 encoded).
- ocrLang — Tesseract language codes to use for OCR, e.g., "eng" or combined like "eng+deu". Defaults to "eng".
- ocrReturn — Choose whether to return the OCR results as a single combined text item or as separate items per page/image.
- ocrAttachTxt — Whether to also attach the recognized text as a binary text file to each output item.
- advancedOcr — Enable advanced OCR settings to configure page ranges, image format, DPI, JPEG quality, and custom trained data path.
- ocrPageRanges — Specify page ranges (1-based) to OCR for PDFs when advanced OCR is enabled, e.g., "1,2-4".
- ocrImageFormat — Image format to convert PDF pages to before OCR when advanced OCR is enabled; either PNG or JPEG.
- ocrDpi — DPI setting for rendering PDF pages as images before OCR when advanced OCR is enabled; range 36–600.
- ocrJpegQuality — JPEG quality (0.1 to 1) for OCR images if JPEG format is selected and advanced OCR is enabled.
- ocrLangPath — Optional URL or filesystem path hosting Tesseract traineddata files when using advanced OCR.
Output shape
a list of items containing recognized text, either a single combined item or one per page/image, optionally with binary text attachments.
Input must be a single item with a binary property containing a PDF or image file. For PDFs, advanced options allow specifying page ranges and rendering details. If 'One Item per Page/Image' is selected, output items correspond to each page (PDF) or image; otherwise, output is a single item with combined text. Enabling 'Also Attach TXT as Binary' includes recognized text as a separate binary file in outputs.