OpenDataLoader PDF on a scan, tested
61.9%
of words from a scan, its README setup
Skip the server: one HTTP call
Local, hybrid and Apple Vision on one scan
| Scan B, 10 book pages | Words of 1,955 | Seconds a page |
|---|---|---|
| Local mode, Java only | 0 | 0.97 |
Hybrid, --force-ocr, EasyOCR |
1,211 | 3.62 |
Hybrid, --force-ocr, Apple Vision |
1,756 | 1.63 |
| Docling with ocrmac | 1,914 | 1.4 |
| LiteParse, Tesseract | 1,876 | 1.26 |
| Our Actor's page code | 1,877 | 6.1 |
Same scan and scorer for every row: true words found in order. The seconds come from different runs, so they are rough.
Without --force-ocr: 1,212 words. The flag did little
here.
Local mode returns page images
On the scan, each page came out as one image link and a PNG file, with no text.
- Typed PDF with the same text: 1,954 of 1,955 words, about 1 second for 10 pages. Each call starts Java once.
Page 6 came out empty
| Page, EasyOCR run | True words | Words out |
|---|---|---|
| 5 | 205 | 562 |
| 6 | 197 | 0 |
| 7 | 211 | 106 |
One paragraph of 438 words on page 5 held the end of page 5, page 6 and most of page 7.
- The cause: Docling joins a paragraph that runs over a page break into one item. OpenDataLoader gives it one page: the first.
- Pages 5 and 6 come from 2 different books. Docling joined them anyway.
With Apple Vision, only 28 of page 6's words stayed on page 6. In the whole file it found 1,931 of 1,955 words, but 1,468 on their own page.
If you cite page numbers in a RAG app, check them.
EasyOCR read quote marks as 66 and 99
EasyOCR is the default engine. It read curly quote marks as digits, 33 times in the forced run. Apple Vision: 0 times, and 2.2 times as fast.
opendataloader-pdf-hybrid --force-ocr --ocr-engine ocrmac --ocr-lang en-US
- Apple Vision needs macOS and
pip install ocrmac. - Other engines in the README: RapidOCR, Tesseract, and Nemotron OCR on Linux x86_64 with CUDA. I did not test them.
Set it up in Python
pip install "opendataloader-pdf[hybrid]==2.5.24"
import opendataloader_pdf
with opendataloader_pdf.HybridServer(args=["--force-ocr"]) as server:
opendataloader_pdf.convert(
input_path=["scan.pdf"],
output_dir="out",
format="markdown",
hybrid="docling-fast",
hybrid_url=server.url,
)
- Java 11 or later must be on your PATH. I used OpenJDK 21.
- The hybrid install is 1,167 MiB, with Docling and PyTorch.
- The first server start downloaded 628 MB of models and took 78 s. Later starts: 14 to 18 s.
-
Peak memory of the server: 2,017 MiB with EasyOCR and
--force-ocr, 2,452 MiB without it, 1,363 MiB with Apple Vision.
No Java or server? Our Actor
To read a scan, OpenDataLoader needs Java, a Python server and its models. Our Apify Actor, PDF to Markdown OCR, is one HTTP call.
On this scan it found 1,877 words, more than hybrid mode with either engine. It reads each page on its own, so a page keeps its words. It was slower.
The API call, on another 10-page scan
curl -s -X POST "https://api.apify.com/v2/acts/brasspage~pdf-ocr-to-markdown/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"documentUrls": ["https://api.apify.com/v2/key-value-stores/sTnmNrGoSsi7tLQvs/records/langchain-scan-10-pages.pdf"]}'
- $0.006 per OCR page, plus $0.00005 a run at the default 1 GB. Pages with their own text layer are free.
- Runs bill to your Apify account. Your files go to Apify's servers.
What I tested, and what I did not
- One clean scan of book prose. No tables, formulas or charts, the other jobs hybrid mode is for.
-
Not tested: Docker, Linux, the Node.js and Java SDKs,
--hybrid-mode full. - Not tested: a way to keep each page's words on its page.
- Not tested: the live Actor on Apify.
How I tested
- Scan B: 10 proofread pages from 2 books, 1,955 true words, no text layer. The typed PDF holds the same text.
- Score: true words found in order, pages 1 to 5 and 6 to 10 scored apart, the same scorer as for LiteParse and Docling.
- "On their own page": the same score for each page alone. "Anywhere": true words in the output, order ignored.
- opendataloader-pdf 2.5.24 with Docling 2.154.0, Python 3.13, one job at a time, 2 threads, at background priority.
-
Seconds a page: the
convert()call over 10 pages, with the Java start. Docling used the Mac GPU. -
Hybrid triage marked all 10 scan pages
likelyScannedPageand sent them to the server. - Each job ran in macOS sandbox-exec with my home folder blocked. The network was on only for the first hybrid run.
- I also sent the scan straight to the server. Its Docling JSON already had the 438-word item, with boxes on pages 5, 6 and 7.
- Docling row: docling-mcp with ocrmac, the scan sent as 2 files of 5 pages. LiteParse row: 2.21.3, its text output.
- Our Actor: its page code, Tesseract 5.5.4, 1 thread, on this Mac. Not an Apify run.
Sources
- OpenDataLoader PDF on GitHub, Apache-2.0
- opendataloader-pdf 2.5.24 on PyPI
- Scripts and results stay in our private repo, in research/bench/opendataloader-pdf-2026-11-27/.
- We make the Apify Actor, not OpenDataLoader or Docling.
Questions people ask
Does OpenDataLoader PDF do OCR on scanned PDFs?
Not in local mode: my scan came back as page images and 0 words. Hybrid mode runs OCR in its Docling server. It found 61.9% of the words with EasyOCR and 89.8% with Apple Vision.
OpenDataLoader PDF vs Docling: which is better on scans?
Hybrid mode's server runs Docling. On my scan, Docling with ocrmac found 1,914 words, sent as 2 files of 5 pages. Hybrid mode with the same engine found 1,756, as 1 file, with many words on the wrong page.
Does OpenDataLoader PDF run in Docker?
I did not test Docker, and the PyPI README does not mention it. Apple Vision is macOS only. In a Linux container, the README's other engines are EasyOCR, RapidOCR, Tesseract and, on x86_64 with CUDA, Nemotron OCR.