Webhook logo
AI logo

Workflow template

Extract PDF text with OCR

Extract text from an uploaded PDF, including scanned pages. Auto mode reads embedded text first and uses OCR where needed, returning page-by-page text and review flags for the next step in your workflow.

How it works

From a PDF File to reviewable extracted text

1 Trigger · 1 Action
Webhook1 · Trigger

Receive PDF file

Receive a PDF as a FastHook File at the workflow’s private webhook URL. The prepared extraction step reads the File supplied as file.

AI2 · Action

Extract PDF text with automatic OCR

Read embedded PDF text in Auto mode and apply OCR to pages with little or damaged text. Return full text, pages, methods, OCR page numbers and review flags. GPT-6.1 Sol is preselected; choose your own OpenAI account for OCR.

The result

Structured extraction output for your next step

The prepared workflow ends after extraction. Inspect its output or add the destination you need; there is no email, spreadsheet or document-saving action included.

Illustrative extraction output

{ "text": "FICTIONAL workshop announcement", "page_count": 1, "mode": "auto", "needs_review": false, "ocr_pages": [], "pages": [ { "page": 1, "text": "FICTIONAL workshop announcement", "embedded_text": "FICTIONAL workshop announcement", "method": "text", "needs_review": false } ] }

Fictional one-page example with usable embedded text, so no OCR pages are listed. Scanned or unclear pages can have different methods and review flags; extraction does not guarantee recovery of unreadable details.

Before activation

Set up your workflow

  1. Supply a PDF File

    Use the workflow’s private webhook URL to supply a PDF File as file. Review the fictional sample before testing your own document. The extraction limit is 4 MiB and ten pages per PDF; plain URL text is not a substitute for the mapped File.

  2. Choose extraction mode and account

    In Extract PDF, select your own OpenAI account for the preselected GPT-6.1 Sol model. Keep Auto for embedded text with OCR fallback, choose OCR for drawings, mixed scans or a bad text layer, or choose Text only to avoid AI extraction.

  3. Inspect the result before adding a destination

    Test with a small fictional PDF and inspect full text, individual pages, methods and review flags. Review unclear text, then add the email, document or other destination your workflow needs before using it on new webhook submissions.

Details and limitations
  • Auto cannot identify every bad text layer. Auto uses OCR for pages with little or damaged embedded text. Text-rich pages can still contain important images or incorrect embedded text that this check misses; choose OCR for those documents.

  • File and page limits apply. Each PDF is limited to 4 MiB and ten pages. Supply the typed PDF File expected by the prepared mapping. This recipe does not download a remote URL or process a folder of documents.

  • Review uncertain output. OCR can misread or fail to recover unclear details. Inspect needs_review and page-level results rather than assuming every character is correct. Text only reads embedded text without calling an AI model or needing an AI account.

  • No output destination is preconfigured. The final step returns structured extraction output. Add your own downstream action to send or save it. OCR uses the AI account you select and its applicable model access and usage limits.

Questions about this template

Do I need an AI account for every PDF?

Text only needs no AI account and reads embedded text without an AI model. For the prepared Auto/OCR setup, select your own OpenAI account in Extract PDF; GPT-6.1 Sol is preselected.

When should I choose OCR instead of Auto?

Use OCR for drawings, mixed text-and-image pages or an incorrect text layer. Auto reads embedded text first and cannot reliably detect image-only information on otherwise text-rich pages.

What are the file limits and returned fields?

Each PDF can be at most 4 MiB and ten pages. Output includes full text, page count, individual pages with methods, OCR page numbers and review flags. Unreadable text is not guaranteed to be recovered.

Will the extracted text be emailed or saved automatically?

No. This template ends at extraction. Inspect its structured output, then add the destination action you want to use.