Image to Text & PDF to Text OCR (English + Arabic)
Pricing
from $1.90 / 1,000 ocr pages
Image to Text & PDF to Text OCR (English + Arabic)
Extract text from images, screenshots, and scanned or digital PDFs by URL or Key-Value Store. English & Arabic OCR + digit normalization. Unreadable pages $0.
Pricing
from $1.90 / 1,000 ocr pages
Rating
0.0
(0)
Developer
Runekit
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Features
Share
Author: Runekit
Extract Arabic and English text from scans, screenshots, and PDFs you supply. Each page becomes one dataset row. Unreadable pages are not charged. The actor does not browse or scrape websites.
This is printed-text OCR. It is not an invoice, VAT, or totals extractor. Phone photos and difficult captures can be weaker than clean scans.
Use cases
- Turn scanned Arabic or bilingual PDFs into searchable text for a document pipeline or archive.
- OCR screenshots or photos of printed forms, letters, notices, or book pages.
- Keep a PDF's existing text layer when it already has real text, and run OCR only on scanned or empty pages.
Example output
One dataset item per page:
{"fileUrl": "https://example.com/page.png","fileName": "page.png","pageNumber": 1,"totalPages": 1,"method": "ocr","language": "ara+eng","text": "NUMBER OF NOUNS.\nThe number of nouns is either singular, dual, or plural.","textNormalized": "NUMBER OF NOUNS.\nThe number of nouns is either singular, dual, or plural.","confidence": 88.4,"wordCount": 180,"charCount": 1100,"passes": 1,"pass": "raw","charged": true,"chargeSkippedReason": null,"error": null}
text is the text as read. textNormalized is the same text with Arabic-Indic digits (٠١٢٣٤٥٦٧٨٩) and Persian digits (۰۱۲۳۴۵۶۷۸۹) converted to 0-9. method is ocr or text-layer.
Pricing
Pay per event. The price follows the Apify Store discount tier. No charge is made per dataset item. A stored page is billed on one event only, and only when charged is true.
| Event | When it is charged | Free | Bronze | Silver | Gold, Platinum, Diamond |
|---|---|---|---|---|---|
ocr-page | Each page that needs OCR | $0.003 | $0.0026 | $0.0022 | $0.0019 |
text-layer-page | PDF page that already has a text layer, extracted without OCR | $0.0005 | $0.00045 | $0.0004 | $0.00035 |
apify-actor-start | Per run | $0.0005 | $0.0005 | $0.0004 | $0.0004 |
$3.00 / 1,000 OCR pages on Free, $1.90 on Gold, Platinum, and Diamond. $0.50 / 1,000 text-layer pages on Free, $0.35 on Gold, Platinum, and Diamond.
ocr-page and text-layer-page are the two page events. A billed PDF page read from its text layer is text-layer-page. Any other billed page is ocr-page. Apify charges apify-actor-start automatically: one charge per run at up to 1 GB of memory, then one more charge for each extra GB. Unreadable pages are not charged (chargeSkippedReason may be empty, low-confidence, non-text, or error).
Input
| Field | Default | Meaning |
|---|---|---|
files | one public sample page | HTTP(S) URLs of PDFs or images (JPEG, PNG, WEBP, TIFF, BMP), 25 MB or smaller each |
sourceKeyValueStore | (none) | The key-value store that holds your files. Pick it in Key-value store with your files so a limited-permissions run can read it. The actor only reads that store and never writes to it. Leave this empty to use this run's default store. |
keyValueStoreRecords | (none) | A record key in the store you picked, or in this run's default store when no store is picked. storeIdOrName/recordKey still works when this run can already read that store (store id, store name, or username~store-name). If it cannot, that item asks you to pick the store and the other files still run. The key must match exactly. A missing record is an error on that item. Images and PDFs are read as raw bytes. The actor does not write the file back. |
languages | ara+eng | Tesseract languages: ara, ara+eng, or eng |
preprocess | true | EXIF rotation, then one greyscale read capped at 2400 px (2000 px with illumination on an uneven photo when the text stays large enough). Extra cleanup runs only in accurate mode |
accurateMode | false | Slower, more passes. The page price is the same. |
skipOcrWhenTextLayer | true | Keep a non-empty PDF text layer instead of OCR'ing that page |
maxPagesPerFile | 20 | Page cap per PDF or multi-page TIFF (maximum 200) |
extractFields | false | Experimental, printed invoices only (see below) |
psm | 3 | Tesseract page segmentation mode |
renderDpi | 300 | DPI used when a PDF page is rendered for OCR (150–400) |
A limited-permissions run cannot read a key-value store that is only named in a text field. Pick that store in Key-value store with your files. The platform then allows this run to read it. A plain key such as scan.png is read from the store you picked. invoices/scan.png still names a store and a key. When that store is the one you picked, the file is read from it. When it is a different store, the actor tries the named store. If the run is not allowed to read it, that item gets an error and the other files still run.
Field candidates (experimental)
extractFields stays off by default. When on, the actor may add a fields object with pattern matches for dates, Hijri dates marked with هـ, Saudi VAT-like numbers, currency amounts, and total lines. These are experimental, intended for printed invoices only, and are not verified values.
Limits
- Handwriting is not supported.
- Accuracy depends on the scan: resolution, contrast, skew, and how clean the print is. Phone photos are often weaker than clean scans or screenshots.
- With
skipOcrWhenTextLayeron, a non-empty PDF text layer is kept even when that text is incomplete or wrong. - BMP files go to Tesseract as they are (no Sharp preprocessing).
- Animated WEBP uses the first frame only.
- URLs must be
httporhttps. The downloader blocks private, loopback, link-local, and metadata addresses. - The actor can run from 512 MB to 2048 MB. Give long documents more memory.
Privacy
Source files are downloaded into a temporary directory and deleted after each file finishes, including when the file fails. They are never written to the key-value store. When you pick a source key-value store, the actor only reads the records you list and does not write to that store. The dataset keeps the extracted text for the account's data-retention period. The original file bytes are not stored.
Run locally
The Docker image is the supported runtime. A local apify run needs tesseract with ara, eng, and osd traineddata, plus pdfinfo, pdftotext, and pdftoppm.
npm installnpm testapify run --input-file input.example.json