PDF & Image to Text - OCR, Scanned PDFs, Bulk Text Extraction avatar

PDF & Image to Text - OCR, Scanned PDFs, Bulk Text Extraction

Pricing

from $2.40 / 1,000 ocr pages

Go to Apify Store
PDF & Image to Text - OCR, Scanned PDFs, Bulk Text Extraction

PDF & Image to Text - OCR, Scanned PDFs, Bulk Text Extraction

Extract text from PDFs and images in bulk. Uses the PDF text layer when present and OCR only for scanned pages, photos and screenshots. 7 languages, per-page output, confidence scores and line positions.

Pricing

from $2.40 / 1,000 ocr pages

Rating

0.0

(0)

Developer

Cuesta Data

Cuesta Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

What does PDF & Image to Text do?

PDF & Image to Text extracts text from PDFs, scanned documents, photos and screenshots in bulk. Paste links to your files and get clean text back, per file or per page, ready for spreadsheets, databases, search indexes or AI pipelines.

It is smart about cost and speed: if a PDF already contains real text, that text is used directly. OCR (optical character recognition) runs only on pages that need it, such as scanned pages, images and photos of documents.

Why use this text extractor?

  • Text layer first, OCR only where needed. Digital PDFs are processed in milliseconds at a fraction of the OCR price. Mixed PDFs (some scanned pages) are handled page by page.
  • Scanned PDFs and images. PNG, JPEG, WebP, GIF, BMP and multi-page TIFF. Small screenshots are automatically upscaled and contrast-corrected for better accuracy.
  • 7 languages. English, Spanish, French, German, Portuguese, Italian and Dutch, alone or combined.
  • Confidence scores. Every OCR page gets a confidence score, so you can flag low-quality scans automatically.
  • Line positions (optional). Get each OCR line with its bounding box and confidence for layout-aware processing.
  • Easy inputs. Direct links, plus public Google Drive and Dropbox share links.
  • Fair per-page pricing. Failed downloads, unsupported files and password errors are listed with a clear error code and are never charged.

What can I use it for?

  • Document processing: invoices, receipts, forms, contracts and letters into searchable text.
  • AI and RAG pipelines: feed clean text from PDFs into LLMs, vector databases or agents (works with MCP).
  • Research and archives: bulk-convert scanned reports, public records and old documents.
  • Data entry automation: pull text from screenshots and photos into Google Sheets, Airtable or a CRM via Make, Zapier or n8n.
  • Compliance and search: make document libraries full-text searchable.

How to extract text from PDFs and images

  1. Click Try for free / Start.
  2. Paste links to your PDFs or images into File URLs (one per line).
  3. Pick your Document languages (English by default).
  4. Click Start. Results appear in the Output tab and can be downloaded as JSON, CSV, Excel or HTML.

Input example

{
"urls": [
"https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"https://example.com/scanned-invoice.jpg"
],
"languages": ["eng"],
"ocrMode": "auto",
"outputMode": "document"
}

Output example

With One row per file (default), each file produces one item:

{
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"fileName": "fw9.pdf",
"fileType": "pdf",
"fileSizeBytes": 140815,
"pageCount": 6,
"pagesProcessed": 6,
"truncated": false,
"ocrPages": 0,
"textLayerPages": 6,
"avgOcrConfidence": null,
"languages": ["eng"],
"charCount": 38120,
"wordCount": 6272,
"metadata": { "Title": "2024 Form W-9", "Producer": "..." },
"text": "Form W-9\n(Rev. March 2024)\nRequest for Taxpayer\nIdentification Number and Certification ...",
"pages": [
{ "page": 1, "method": "text-layer", "text": "Form W-9 ...", "confidence": null, "charCount": 6890 }
],
"error": null
}

For a scanned page, method is "ocr" and confidence is filled in (for example 93.7). With Include lines turned on, OCR pages also contain:

"lines": [
{ "text": "Form W-9", "confidence": 93.5, "box": { "x": 156, "y": 175, "width": 248, "height": 90 } }
],
"imageSize": { "width": 2550, "height": 3300 }

Errors look like this and are not charged:

{ "url": "https://example.com/missing.pdf", "error": "Download failed with HTTP 404", "errorCode": "HTTP_404" }

Error codes: INVALID_URL, HTTP_<status>, DOWNLOAD_FAILED, FILE_TOO_LARGE (over 100 MB), UNSUPPORTED_TYPE, CORRUPT_FILE, PDF_PASSWORD.

How much does it cost?

This Actor uses pay-per-event pricing, charged per page:

  • OCR page (scanned PDF page or image): see the Pricing tab, about $3 per 1,000 pages.
  • Text-layer page (digital PDF page, no OCR needed): about $0.20 per 1,000 pages.

So a 10-page digital PDF costs about $0.002, and a 10-page scanned PDF about $0.03. Use Max pages per file to cap the cost of very large documents.

Tips for best accuracy

  • Choose every language present in your documents, and only those.
  • For scanned PDFs, keep OCR resolution at 300 DPI. Use 200 for faster, cheaper runs on clean scans.
  • Photos taken at an angle or in poor light reduce accuracy. Check avgOcrConfidence: values above 85 are usually very good.
  • If a digital PDF's text comes out garbled (some PDFs have broken fonts), set OCR mode to Always OCR.
  • For large batches, give the run 4-8 GB of memory: more memory means more CPU, so more pages are OCR'd in parallel.

Integrations and API

Use it from the Apify API, the JavaScript or Python client, Make, Zapier, n8n, Google Sheets or any AI agent that supports MCP. Run it on a schedule or trigger it from a webhook when new files arrive.

Use with AI agents (MCP)

Connect this tool to Claude, ChatGPT, Cursor or any other MCP client through the Apify MCP server. Add this server URL to your client and sign in with your Apify account:

{
"mcpServers": {
"apify": { "url": "https://mcp.apify.com/?tools=actors,docs,cuestadata/pdf-image-text-extractor" }
}
}

Then ask in plain words, for example: "Extract the text from these scanned PDF invoices, page by page." The agent fills in the input, runs PDF & Image to Text (OCR) and reads the results.

AI agents without an Apify account can pay per run with a prepaid token (x402, Skyfire or card) through Apify agentic payments. This tool uses limited permissions, so it works with those tokens.

More tools from Cuesta Data

ToolWhat it does
Website Screenshot & PDFFull-page, mobile and element screenshots or PDFs of any list of URLs, with change detection.
Company Jobs APIEvery open job from company career pages on Greenhouse, Lever, Ashby, Workable and more.
SEO Site AuditCrawl a site and check titles, meta tags, headings, broken links, duplicates and schema, with an HTML report.
PageSpeed & Lighthouse Bulk AuditLighthouse scores, Core Web Vitals and top fixes for many URLs or a whole sitemap, with HTML reports.
Domain Availability CheckerBulk domain availability for name ideas x TLDs, confirmed by registry RDAP/WHOIS, with registrar and expiry dates.
Bulk File DownloaderDownload files from a URL list or every PDF/image linked on a page, with one ZIP link and SHA-256 hashes.
Link Preview & Website MetadataTitle, description, Open Graph image, favicon, logo, brand color, JSON-LD and oEmbed for any list of URLs.

FAQ

Are my documents stored? Files are downloaded only to process them and are not kept by this Actor. Extracted text is saved in your own Apify dataset, which you control and can delete.

Can it read handwriting? Printed text works best. Neat handwriting is sometimes recognized, but results vary.

Does it work with password-protected PDFs? Yes, if you provide the password in PDF password.

Is it legal to extract text from documents? Extracting text from documents you own or have permission to process is generally fine. You are responsible for complying with copyright and privacy laws for the files you process.

I found a bug or need a feature. Open an issue on the Issues tab. We usually reply within a day.

PDF & Image to Text is built and maintained by Cuesta Data.