Image to Text OCR: Scanned PDF, JPG & PNG to Text avatar

Image to Text OCR: Scanned PDF, JPG & PNG to Text

Pricing

from $4.00 / 1,000 pages

Go to Apify Store
Image to Text OCR: Scanned PDF, JPG & PNG to Text

Image to Text OCR: Scanned PDF, JPG & PNG to Text

OCR for images and scanned PDFs: get the text out of PNG, JPG, WEBP, TIFF and PDF files. Seven languages included, text-layer PDFs read without OCR. For invoices, receipts, contracts, forms and screenshots, ready for RAG and automation. Pay per page with text.

Pricing

from $4.00 / 1,000 pages

Rating

0.0

(0)

Developer

Markus Heiß

Markus Heiß

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 days ago

Last modified

Categories

Features

Limited permissions

Share

Get the text out of images and scanned PDFs. Give it a list of links to PNG, JPG, WEBP or TIFF files or PDFs, get back one item per file with the recognized text.

Made for documents that have no text you can copy: scanned invoices, receipts, contracts, letters, forms and screenshots. Feed the result into RAG pipelines, search indexes, spreadsheets or your own automation.

What it does

  • Downloads each file from its URL and detects the type from the file content, not the file name.
  • Images (PNG, JPG, WEBP, TIFF, GIF, BMP) go straight to OCR.
  • PDFs are read page by page:
    • Pages that already have a text layer use that text. It is faster and exact.
    • Scanned pages are rendered at the resolution you choose and run through OCR.
    • Turn on Force OCR to OCR every page, for example when the text layer is broken.
  • Returns a confidence score (0 to 100) so you can flag bad scans for review.
  • Plain text or Markdown output. Markdown joins the lines of each paragraph and marks PDF pages with <!-- page 3 -->.
  • The OCR engine (Tesseract, LSTM models) runs inside the Actor. Your files are not sent to any third-party OCR service.

Supported languages

English, German, French, Spanish, Italian, Portuguese and Dutch. Select every language that appears in your files. Each extra language makes OCR a little slower.

Input

FieldDescriptionDefault
File URLsDirect links to images or PDF files
LanguagesLanguages of the text, one or moreEnglish
Output formattext or markdowntext
Max pages per filePages beyond this limit are skipped and not charged50
Force OCROCR every PDF page, even with a text layeroff
PDF render resolution (DPI)72 to 300. Use 300 for small print200
Max file size (MB)Larger files are skipped with an error30

Output

One dataset item per file:

{
"url": "https://tesseract.projectnaptha.com/img/eng_bw.png",
"fileType": "png",
"languages": ["eng"],
"pageCount": 1,
"processedPages": 1,
"ocrPages": 1,
"confidence": 92,
"text": "Mild Splendour of the various-vested Night!\nMother of wildly-working visions! hail\n...",
"characters": 351,
"truncated": false,
"error": null
}
  • ocrPages: pages that needed OCR. The rest came from the PDF text layer.
  • confidence: mean OCR confidence of the OCR pages. null when no page needed OCR.
  • truncated: true when the page limit cut the file short.
  • error: why a file failed, for example an HTML page instead of a file. Failed files have text: null.

Export as JSON, CSV or Excel, or read it through the Apify API.

Pricing

Pay per processed page that produced text. An image counts as one page. Failed files and pages without any text are not charged. You can cap the cost of a run with the maximum charge setting in Apify.

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start.

If your PDFs all have a text layer (born digital, not scanned), a plain PDF to text converter is cheaper.

Performance and memory

  • A clean image takes about a second. A dense scanned A4 page takes a few seconds of CPU time.
  • 2048 MB memory (the default) is enough for normal documents. More memory also gives the run more CPU, so OCR gets faster.

Limits

  • Handwriting is recognized poorly. The Actor is built for printed text.
  • Accuracy depends on the scan: low resolution, blur, skew, stamps, coloured backgrounds and old typewriter copies lower the confidence score.
  • Photos with EXIF rotation are read as stored. Rotate them first if the text is sideways.
  • Multi-page TIFF files: only the first page is read.
  • Tables come back as text lines, not as table cells. Layout is not kept.
  • Only public http and https links. Password protected PDFs are not supported.
  • Data source: The files at the URLs you enter. The Actor downloads each file once during the run. Text recognition runs inside the Actor with the open source Tesseract engine.
  • Snapshot: Results show the source at the time of the run. We do not guarantee that they are complete, current or correct.
  • For business use: This Actor is offered to businesses only, not to consumers.
  • Permitted use: Process only content you are allowed to access and use, for example your own websites and documents or public pages you have a legitimate reason to process. Respect the terms of the websites and the rights in the content.
  • Your responsibility: You choose the URLs and decide what happens with the results. If results contain personal data, you are the controller and need your own legal basis.
  • No circumvention: The Actor does not log in, solve captchas or bypass paywalls, bot protection or other access restrictions. Do not use it for that.
  • Request volume: One download per file link. Do not use it to put excessive load on a website.
  • Provider: forgeloop, Markus Heiss, Austria. Imprint, Privacy Notice, Terms of Use.

Questions and issues

Open an issue on the Actor page. Bugs are fixed quickly.