PDF to Text Extractor - Scanned PDF OCR
Pricing
from $0.20 / 1,000 text pages
PDF to Text Extractor - Scanned PDF OCR
Convert 📄 PDF to Text page by page with metadata, OCR for scanned pages & Markdown tables. ✅ Digital or scanned. ⚡ Fast. 📦 No API key.
Pricing
from $0.20 / 1,000 text pages
Rating
0.0
(0)
Developer
Helenis API
Maintained by CommunityActor stats
1
Bookmarked
2
Total users
1
Monthly active users
18 hours ago
Last modified
Categories
Features
Share
📄 PDF to Text Extractor - Scanned PDF OCR
Paste PDF links, get their text. Reports, contracts, papers, invoices, brochures, scanned archives: every PDF becomes clean text page by page, with its metadata. Scanned pages are read by AI OCR automatically, and an AI mode gives you Markdown with headings and tables, ready for RAG and LLM pipelines.
Works on a plain list of PDF links or on the dataset of another actor that found them. No API key, no setup: add links and hit Run.
⚡ Why this actor?
- 🧠 Smart by default: the PDF's own text is used when it exists (fast and exact), and only the scanned pages go to the AI.
- 🖨️ Scanned PDFs too: image-only pages, faxes and photographed documents, handwriting included. Scans are read at high resolution.
- 📊 Markdown with tables: AI mode rebuilds headings, lists and tables, and turns figures into one line of labels instead of noise.
- 📑 Page by page: each page is a separate item, with how it was read (
textorai). - 🏷️ Metadata: title, author, subject, creator, producer, creation and modification dates.
- 🎯 Page ranges: extract
1-5,8instead of the whole document. - 🔗 Chains with other actors: point it at a dataset ID and it extracts the PDFs listed in it.
🏆 How it compares
| Feature | This actor | Text-layer extractors | Classic OCR |
|---|---|---|---|
| 📄 Digital PDFs | ✅ | ✅ | ⚠️ Slower |
| 🖨️ Scanned pages | ✅ Automatic | ❌ | ✅ |
| ✍️ Handwriting | ✅ | ❌ | ❌ |
| 📊 Tables as Markdown | ✅ AI mode | ❌ | ❌ |
| 💸 Pay only for AI where needed | ✅ | — | ❌ |
| 💸 Failed PDFs charged | ❌ Never | ⚠️ Varies | ⚠️ Varies |
📊 What data do you get?
One row per PDF. The table view shows the essentials; the full row holds every page.
📄 Document
| Field | Description | Example |
|---|---|---|
pdfUrl | The PDF link you gave | https://arxiv.org/pdf/1706.03762 |
success | true when the PDF was extracted | true |
error | code and message when the PDF could not be extracted (not charged) | — |
source | Final URL of the PDF, after redirects | https://arxiv.org/pdf/1706.03762 |
pageCount | Pages in the PDF | 15 |
pagesExtracted | Pages you asked for and got | 3 |
textPages | Pages taken from the PDF's own text layer | 0 |
aiPages | Pages read by the AI | 3 |
🏷️ Metadata
| Field | Description | Example |
|---|---|---|
title | Document title, when the PDF declares one | — |
author | Document author, when declared | — |
created | Creation date, ISO 8601 | 2024-04-10T21:11:43+00:00 |
metadata | Everything the PDF declares: title, author, subject, creator, producer, created, modified | "creator": "LaTeX with hyperref" |
📝 Content
| Field | Description | Example |
|---|---|---|
text | All extracted pages, in order | Attention Is All You Need\nAshish Vaswani ... |
markdown | All extracted pages as Markdown, separated by ---. AI pages keep headings and tables; text-layer pages stay plain text | ## Abstract\n\nThe dominant sequence transduction models ... |
pages | One item per page: page, method (text or ai), text, markdown (AI pages only) | { "page": 1, "method": "ai", ... } |
🚀 How to use it
- Add direct links to PDFs (one per line), or a dataset ID from another actor.
- Pick a mode: Auto (recommended), Text layer only (cheapest) or AI on every page (best Markdown).
- Optionally limit the pages.
- Click Run, then export the table as CSV, Excel or JSON.
⚙️ Input
| Option | Default | Description |
|---|---|---|
| 🔗 PDF links | — | One direct link per line, up to 50 MB each |
| 📦 Dataset ID (optional) | — | Extract the PDFs listed in an existing Apify dataset |
| PDF link field in the dataset | — | Field holding the PDF link. Empty: pdfUrl, fileUrl, documentUrl, downloadUrl and url are tried |
| Maximum PDFs | 0 | Stop after this many PDFs (0 = no limit) |
| 🧠 Extraction mode | Auto (recommended) | Auto: the PDF's own text, AI OCR for scanned pages only. Text layer only: no AI, cheapest. AI on every page: clean Markdown with headings and tables |
| 📑 Pages (optional) | All | e.g. 1-5,8,10-12. 500 pages at most, 100 read by the AI |
| Parallel PDFs | 3 | How many PDFs are processed at the same time (1-5) |
Duplicate links are removed before the run starts.
Input example
{"urls": ["https://arxiv.org/pdf/1706.03762"],"maxPdfs": 0,"mode": "auto","maxConcurrency": 3}
Output example (one row per PDF)
The same paper, run with "mode": "ai" and "pages": "1-3":
{"pdfUrl": "https://arxiv.org/pdf/1706.03762","success": true,"pageCount": 15,"pagesExtracted": 3,"textPages": 0,"aiPages": 3,"created": "2024-04-10T21:11:43+00:00","markdown": "Attention Is All You Need\n\nAshish Vaswani ... \n\n## Abstract\n\nThe dominant sequence transduction models ...\n\n---\n\n...","pages": [{ "page": 1, "method": "ai", "text": "...", "markdown": "..." }]}
Shortened from a real run.
Available as JSON, CSV, Excel, or via the Apify API and dataset exports.
Limits
PDFs up to 50 MB and 500 pages; at most 100 pages read by the AI per PDF (for longer scanned documents, run page ranges such as 1-100, then 101-200). Password-protected PDFs are not supported in this actor.
💰 Pricing
Pay only for pages you get:
| Event | When |
|---|---|
| 📄 Text page | Each page taken from the PDF's own text layer |
| 🧠 AI page | Each page read by the AI (scanned pages in Auto mode, every page in AI mode) |
Text pages are the cheap ones. In Auto mode, a digital PDF is billed as text pages only; the AI price applies only to the pages that need it.
PDFs that cannot be downloaded or opened are listed with their error and not charged. Set a maximum cost per run in the run options and the actor stops cleanly when it is reached.
🆓 On the Apify free plan, each run extracts the first 10 pages of the first 5 PDFs.
💡 Use cases
- 🤖 RAG & search: feed clean, page-numbered text and Markdown to your vector database or LLM.
- 📑 Document automation: pull the text of contracts, reports and invoices into your workflows.
- 🗄️ Archives: make scanned documents and old faxes searchable.
- 🎓 Research: extract papers with their tables and section structure.
- 🔗 Crawl, then read: run a crawler that collects PDF links, then pass its dataset ID here.
- 🏷️ Document inventory: list the page count, title, author and dates of a batch of PDFs.
❓ FAQ
Which mode should I choose? Auto for almost everything. Text if you only need raw text from digital PDFs at the lowest price. AI when layout matters: tables, multi-column papers, forms.
How does Auto mode spot a scanned page? A page whose text layer holds fewer than 30 characters is treated as a scan and read by the AI. Every other page keeps its own text.
How big can a PDF be?
Up to 50 MB and 500 pages, with at most 100 pages read by the AI per PDF. For a longer scanned document, run page ranges (1-100, then 101-200).
Can I extract PDFs found by another actor?
Yes. Paste its dataset ID. The actor reads the link from pdfUrl, fileUrl, documentUrl, downloadUrl or url, or from the field you name.
Am I charged for PDFs that fail?
No. A PDF that cannot be downloaded or opened gets a row with success: false and its error, and costs nothing. Temporary failures are retried once. If no PDF at all could be extracted, the run is marked as failed.
Why is the text-layer output sometimes oddly spaced? That is how the PDF stores its text (common with LaTeX and multi-column layouts). Use AI mode for clean reading order.
Does it read images and charts?
Text printed inside figures is kept as one [Figure: ...] line in AI mode; images without text are skipped.
What about password-protected PDFs, Word or PowerPoint files? Password-protected PDFs are not supported in this actor. Convert Word and PowerPoint files to PDF first.
🔌 Integrations
Connect results to your existing workflow:
- 📗 Google Sheets: Auto-export results to a spreadsheet
- 🪝 Webhooks: Trigger downstream actions when a run completes
- ⚡ Zapier / Make: Plug into 1000+ apps
- 🛠️ API: Fetch results programmatically from any language
- 🔄 Scheduled runs: Re-extract documents that change on a recurring schedule
- 🤖 AI agents: call it from Claude, Cursor or any MCP client through Apify's MCP server
🌐 Also available as an API
The same engine is sold as a REST API on RapidAPI: PDF to Text - Markdown, Tables & Scanned PDF OCR by Helenis API. It also accepts direct uploads and password-protected PDFs.
🔒 Privacy
PDFs are downloaded, read and discarded: neither the file nor its text is stored by our backend. The AI sub-processor may keep requests temporarily for abuse monitoring. Only process documents you have the right to process.