PDF & Image to Text - OCR Text Extractor avatar

PDF & Image to Text - OCR Text Extractor

Pricing

from $2.10 / 1,000 documents

Go to Apify Store
PDF & Image to Text - OCR Text Extractor

PDF & Image to Text - OCR Text Extractor

Extract text from PDFs and images by link: the text layer of a PDF, OCR for scanned pages and pictures in 27 languages. Per-page text, metadata, word count and OCR confidence. Passwords, page ranges, many files. Export to Excel, CSV or API.

Pricing

from $2.10 / 1,000 documents

Rating

0.0

(0)

Developer

Shivam Prajapati

Shivam Prajapati

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Extract the text of PDFs and images by link: the text layer of a PDF, and OCR for scanned pages and pictures in 27 languages. One record per file with the full text, the text of each page, metadata (title, author, dates), word count and the OCR confidence. Password-protected PDFs, page ranges, many files at once. Export to Excel, CSV, JSON or the API. No login, no API key.

Actively maintained. Last update: 2026-11-21. Every release passes 100+ automated tests on real PDFs and images, and the OCR is run on real pictures on Apify.

What can you use it for?

  • Make PDFs searchable and analysable. Invoices, contracts, reports, papers, forms: the text in a column, ready for search, spreadsheets or your own scripts.
  • Read scanned documents. Scans, photos of documents, screenshots and fax-like PDFs have no text layer: the Actor recognises them with OCR.
  • Feed AI and search tools. Clean text per page with the page numbers, for RAG, embeddings and summaries.
  • Process whole folders of links. Hundreds of PDFs or images from a sitemap, a dataset or a spreadsheet, in one run.
  • Check metadata. Title, author, creator, creation and modification dates of PDFs.

What data can you get?

Give links. Every record is one file.

You giveYou get
urls: links to PDFs and imagesOne record per file with its text
languagesOCR in 27 languages, up to 4 at once
ocrModeThe text layer, OCR for pages without text (automatic), OCR everywhere, or never
pages, maxPagesPerDocumentOnly some pages
passwordProtected PDFs

Fields

A field that does not apply, such as the author of an image, is null.

The file

FieldWhat it is
urlThe link you gave.
finalUrlThe address the file was downloaded from, after redirects.
httpStatusThe HTTP status of the download.
fileTypepdf, png, jpeg, gif, webp, tiff or bmp, known from the file's first bytes, not from its name.
fileBytesThe size of the downloaded file in bytes.
pageCountHow many pages the document has.
pagesReadHow many pages were read (the page range and the page limit apply).

The text

FieldWhat it is
textThe text of the pages read, pages separated by a blank line.
pagesThe text of each page: a list of objects with page, text, method (textLayer or ocr) and confidence (OCR pages). Empty when 'Include the text of each page' is off.
wordCountThe number of words in text.
characterCountThe number of characters in text.
methodtextLayer when every page came from the PDF's own text, ocr when every page was recognised, mixed for both.
languagesThe OCR languages used, as Tesseract codes: eng, deu ...
confidenceThe average OCR confidence of the recognised pages, 0 to 100. Empty when no page needed OCR.

PDF details

FieldWhat it is
titleThe PDF's title from its metadata.
authorThe PDF's author from its metadata.
subjectThe PDF's subject from its metadata.
keywordsThe PDF's keywords from its metadata.
creatorThe program that created the document.
producerThe program that made the PDF file.
createdAtWhen the PDF was created (UTC).
modifiedAtWhen the PDF was last changed (UTC).

Where it came from

FieldWhat it is
scrapedAtWhen the record was collected (UTC).

Example result

A PDF with one page of real text and one scanned page (the OCR text is shown as an example):

{"url": "https://example.com/report.pdf", "finalUrl": "https://example.com/report.pdf", "httpStatus": 200, "fileType": "pdf", "fileBytes": 183204, "pageCount": 2, "pagesRead": 2, "method": "mixed", "languages": ["eng"], "text": "A page with a real text layer, long enough to be used as it is.\n\nText recognised from a scanned page.", "pages": [{"page": 1, "text": "A page with a real text layer, long enough to be used as it is.", "method": "textLayer", "confidence": null}, {"page": 2, "text": "Text recognised from a scanned page.", "method": "ocr", "confidence": 91.5}], "wordCount": 21, "characterCount": 101, "confidence": 91.5, "scrapedAt": "2026-11-21T10:00:06Z"}

Input

InputWhat it does
urlsLinks to PDFs and images
languages, ocrMode, dpiOCR languages, when to use OCR, the resolution
pages, maxPagesPerDocumentWhich pages, and how many
includePagesThe text of each page, or only the whole text
passwordThe password of protected PDFs
onlyNewSkip files that earlier runs of the same input returned
maxItems, maxConcurrency, requestTimeoutSeconds, proxyConfigurationLimits, speed and downloads

How much does it cost?

You pay per document returned, whatever its number of pages. There is no start fee. Files that cannot be downloaded or read are not returned and not charged.

PlanPrice per 1,000 documents
Free$3.00
Bronze$2.70
Silver$2.40
Gold$2.10
  • 1,000 documents cost about $3 on the Free plan. OCR also uses run time: a scanned page takes 1 to 3 seconds of the run, which Apify bills as platform usage.
  • Use maxItems to cap the cost of a run, and maxPagesPerDocument to cap the OCR time.

Use it via API, on a schedule, or with your tools

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/pdf-ocr-text-scraper").call(run_input={
"urls": ["https://example.com/invoice.pdf", "https://example.com/scan.png"],
"languages": ["eng", "deu"],
"ocrMode": "auto",
})
for doc in client.dataset(run["defaultDatasetId"]).iterate_items():
print(doc["url"], doc["method"], doc["wordCount"], doc["text"][:100])

Use it in Clay, n8n, Make or Zapier

Use the Actor ID pshivam/pdf-ocr-text-scraper and an input like this:

{"urls": ["https://example.com/contract.pdf"], "includePages": false, "maxPagesPerDocument": 100}

Good to know

  • Text layer first. In automatic mode a PDF page that has real text is read from the PDF itself: exact and fast. OCR runs only for pages without text, and for images. A scanned PDF is read page by page with OCR.
  • OCR quality. Tesseract reads clear print well. Handwriting, very small or blurred text and photos taken at an angle give lower confidence: raise dpi to 300 for small print. Choose the right languages: a German text read as English loses its umlauts.
  • Files by link. The Actor downloads each file (up to 100 MB). It cannot read files behind a login. For files on your computer, upload them to a public link first.
  • No layout. The text comes in reading order, line by line, and a blank line between blocks. Tables become lines of text, not cells.
  • Speed. A PDF with a text layer takes under a second. A scanned page takes 1 to 3 seconds of OCR, so a 50-page scan takes 1 to 2 minutes.
  • Independent tool. Not affiliated with Adobe or the Tesseract project. Check an important figure in the original document.

FAQ

How do I extract text from a PDF?

Put the link in urls and run. A PDF with a text layer is read directly, with the text of each page.

Can it read scanned PDFs and images?

Yes. Pages without text, and every image, are recognised with OCR. Choose the languages of the text in languages.

Which languages does the OCR support?

27, among them English, German, French, Spanish, Portuguese, Italian, Dutch, Russian, Arabic, Chinese, Japanese, Korean, Hindi and Turkish. Use up to four in one run.

What about password-protected PDFs?

Give the password in password. The same password is tried on every protected file.

How accurate is the OCR?

Each recognised page has a confidence from 0 to 100. Clear print scores above 90. Use ocrMode "never" to skip OCR when you only want text layers.

Can I read only some pages?

Yes. pages takes a range such as 1-3,5 and maxPagesPerDocument caps the pages of each file.