FeaturedDocument Ops#Tesseract#OCR#PDF#Document Extraction#File Upload

Tesseract OCR PDF to Text

Upload a scanned PDF, extract searchable text with Tesseract OCR, and return page-level results.

Workflow at a glance

The full canvas, before you import it

Click any node to see its config.

#Tesseract#OCR#PDF#Document Extraction#File Upload

Click a node to select it — same as the Heym editor; the panel shows its settings.

3 nodes · Free & source-available

Tesseract OCR PDF to Text

Turn a scanned PDF into searchable plain text without sending the document to an external OCR service. The Converter node reads the file from Heym Drive, runs Tesseract on each page, and returns both the complete text and page-level results.

What this workflow does

  1. ScannedPDF creates a single-use upload link for a PDF
  2. ExtractText rasterizes the PDF and runs Tesseract OCR with automatic language detection
  3. OCRResult returns the extracted text, detected language, encoding, page count, and per-page text

Use cases

  • Make scanned contracts, invoices, receipts, and forms searchable
  • Prepare image-only PDFs for an LLM, Agent, RAG, or structured extraction step
  • Keep OCR inside a self-hosted Heym deployment
  • Preserve page boundaries for downstream review or indexing

Setup

Run the workflow once to create a single-use upload command, then upload a PDF with the generated curl command. The default settings use automatic language detection, UTF-8 output, Unicode normalization, 300 DPI, and Tesseract page segmentation mode 3.

Notes

To process only part of a long PDF, set Page range on ExtractText to a page such as 3 or a range such as 2-5. If you know the document language, selecting a specific Tesseract model can improve accuracy. For screenshots or image files, change the conversion to imageToText and allow image/* uploads.

How to import this template

  1. 1Click Import → Copy JSON on this page.
  2. 2Open your Heym and navigate to a workflow canvas.
  3. 3PressCmd+V/Ctrl+V— nodes appear instantly.
  4. 4Add your API keys in the node config panels and click Run.
More workflow templates
View all templates
Heym
incident analysis · production AI
Observed across 100s of AI rollouts

AI workflows don't fail because of prompts.
They fail because of orchestration.

symptom · glue code01
5 tools
Scripts, vector DB, approval bot, tracing, browser runner — none of them talk.
symptom · visibility02
~0%
Observable behavior across the stack. Debugging is guesswork.
with heym · one runtime
1 canvas
Agents, RAG, HITL, MCP, traces & evals. Self-hosted. Observable.
AI-Native RuntimeProduction-Grade
github.com/heymrun/heym