Scanned PDF OCR to RAG Chunks: Image to Text + Page Citations
Pricing
from $1.20 / 1,000 useful ocr page processeds
Scanned PDF OCR to RAG Chunks: Image to Text + Page Citations
OCR scanned PDFs and images in 24 languages and split the text into RAG chunks with page numbers and a quality score per page. $1.50 per 1,000 pages with usable text; blank pages are free.
Pricing
from $1.20 / 1,000 useful ocr page processeds
Rating
0.0
(0)
Developer
EchoEmpire Machine Foundry (EchoEmpire LLC)
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Features
Share
Pricing
The Actor uses pay-per-event pricing. It charges once for each useful OCR page only after that page's citation-ready output is saved. Pages that already have a usable embedded text layer are extracted without OCR and are not charged as page-processed events. Blank pages that produce no useful output are not charged. Platform usage costs are included.
| Subscription tier | Useful OCR page price |
|---|---|
| Free / Bronze | $1.50 per 1,000 pages |
| Silver | $1.35 per 1,000 pages |
| Gold and higher | $1.20 per 1,000 pages |
Actor start (apify-actor-start) is $0.00005 per GB of run memory (minimum one event), charged once per run: $0.00005 at the default 1024 MB, $0.0002 at 4096 MB. Invalid input and failed downloads are not charged as page-processed events.
Give this Actor a scanned or image-only PDF, or a PNG or JPG, and it returns deterministic, page-aware citation-ready JSON chunks with OCR confidence, quality signals, source provenance, and stable citation identifiers. If a PDF page already has a usable text layer, that text is used directly and the page is not OCR'd or charged.
Use it to turn archival scans, printed reports, forms, photos of documents, and image-based research PDFs into retrieval-ready records for RAG, search, and agent workflows. It is intentionally narrow: it extracts text, does not interpret meaning, and never invents text.
Input
Provide at least one of url, urls, sourceFile, sourceBase64, or datasetId / datasetIds. Sources may be PDFs, PNG images, or JPG images. Up to 200 sources can be processed per run. languages selects Tesseract language packs (default eng; use eng+spa or an array such as ["eng","spa"]). Unknown language codes fail the run as invalid input with no page-processed charge. pageRanges (for example 1-5,8,10-12) and maxPages (default 100 per document) limit which PDF pages are processed. chunkSize controls the approximate maximum characters per chunk; overlap retains trailing context in the next chunk. ocrWorkers requests 1–8 parallel Tesseract workers, with the effective count capped by available memory. ocrDpi controls rasterization from 100–300 DPI.
If no source is supplied at all, the run finishes without downloading or charging page-processed events, and both the run status message and SUMMARY (status: "invalid_input", error) say nothing was processed. Other invalid input (for example a non-http URL, more than 200 sources, an unknown language, or overlap not smaller than chunkSize) fails fast before any chargeable OCR page, with the reason in the run status message and in SUMMARY.
{"url": "https://example.com/scanned-report.pdf","languages": "eng","pageRanges": "1-10","maxPages": 30,"chunkSize": 3000,"overlap": 300,"ocrWorkers": 4,"ocrDpi": 200}
PDF and image URLs must be publicly reachable, or Apify storage URLs that this Actor can read with the run token. Password-protected, malformed, or unreachable inputs are reported in the final SUMMARY; a failed document does not discard usable output from other documents in the same run.
Output
The default dataset contains one JSON record per citation-ready chunk. Important fields include:
text,pageStart, andpageEndfor grounding a citation.documentId(SHA-256 of source bytes) and deterministicchunkIdfor idempotent downstream indexing.sourceUrl,resolvedUrl,sourceByteSize, anddocumentSha256for provenance.extractionMethod:tesseract-ocrfor scanned or image pages, orembedded-textwhen a PDF text layer was used and the page was not charged.ocrConfidenceplusocrQualityScore,ocrQualityTier(high,usable, orlow), andocrQualityFlagsfor filtering uncertain extraction.characterCountandestimatedTokensto help size vector-store or LLM work.
The key-value store record SUMMARY reports totals, per-document outcomes, failed sources, useful OCR pages charged, and text-layer pages skipped. A useful OCR page is one that produces usable OCR text and saved citation-ready output. Blank or non-readable pages are not emitted as chunks and are not charged. Embedded text-layer pages are emitted but are not charged as page-processed events.
Example record
{"documentId": "sha256:...","chunkId": "sha256:...","pageStart": 4,"pageEnd": 4,"extractionMethod": "tesseract-ocr","ocrLanguage": "eng","ocrConfidence": 92.4,"ocrQualityScore": 94.1,"ocrQualityTier": "high","ocrQualityFlags": [],"text": "Extracted source text..."}
Current capabilities
- PDF, PNG, and JPG sources from a URL, an upload (
sourceFile), base64 (sourceBase64), or Apify dataset IDs. - Up to 200 sources per run.
- Tesseract language selection (
languages) with 23 installed packs: eng, spa, fra, deu, ita, por, nld, pol, rus, ukr, tur, ara, hin, chi_sim, chi_tra, jpn, kor, vie, ind, swe, ces, ell, heb. - Page ranges and a per-document
maxPagescap (default 100). - Skip OCR on pages that already have a usable text layer; use that text and do not charge them.
- Quality scores, stable chunk IDs, and a machine-readable
SUMMARY.
Limits and quality
OCR is best for clear, reasonably upright scans. Handwriting, complex tables, faint pages, unusual scripts, and heavily compressed imagery may produce incomplete text. Use ocrQualityTier and ocrQualityFlags as deterministic review signals before relying on a chunk.
The default run configuration is 1024 MB memory and a 3600-second timeout, with OMP_THREAD_LIMIT=1 set in the image (512 MB is the minimum allowed memory). Run time varies with page count, image resolution, language, and source quality.
Limits
- Up to 200 sources per run (more fails fast as invalid input).
- If every submitted source fails (unreachable, unsupported type, too large), the run ends as FAILED; per-document reasons are in
SUMMARY. - Default
maxPagesis 100 per document afterpageRanges. A longer PDF is not rejected; only the selected pages are processed and charged if OCR'd. - Up to 50 MB per PDF and 20 MB per image. A larger file is recorded as a
faileddocument outcome and is not charged. - Downloaded or uploaded bytes must be a PDF (
%PDF), PNG, or JPEG.
Integration
Consume the dataset through the Apify API, webhook, Make, Zapier, or an agent workflow. Store chunkId to deduplicate re-runs, cite sourceUrl with pageStart/pageEnd, and retain documentId to trace every chunk back to its exact source bytes.
For AI agents and MCP
Contract: public scanned PDF, PNG, or JPG (URL, upload, base64, or dataset) → page-aware citation-ready JSON chunks, with OCR or embedded text.
Use this Actor for scanned PDF OCR, image-to-text, OCR to JSON, citation-ready OCR, and scanned-document RAG ingestion. For PDFs that already have a full text layer and do not need OCR, PDF Citation Chunker is usually cheaper; this Actor will still extract those pages without charging page-processed events.