OCRRouter

OCRmyPDF vs SmolDocling

Pick OCRmyPDF to make scanned PDF archives searchable and keep them as validated PDF/A. Pick SmolDocling only to experiment with a tiny document model that converts English pages to Markdown, HTML or JSON, and note that it is a preview release superseded by Granite-Docling. The main split is the output: OCRmyPDF adds a text layer to the PDF, while SmolDocling rebuilds page structure.

OCRmyPDFocrmypdf/ocrmypdfSmolDoclinghuggingface/smoldocling
TypeOpen sourceOpen source
Price1 credit / page1 credit / page
Per 1,000 pages$1.00$1.00
Typical speed1.0 s / page1.0 s / page
Best forSearchable PDFs from scansVery cheap page conversion
InputsPDF, imagesPDF, images
Languages100+ languages (via Tesseract)Mainly English
Max pages per request1,000500
TablesNo✓ Yes
HandwritingNoNo
MathNo✓ Yes
Bounding boxesNo✓ Yes
ConfidenceNoNo
FormsNoNo
Multilingual✓ YesNo
On OCRRouterAvailableAvailable

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

Which to choose

Choose OCRmyPDF if

  • You need searchable PDF/A output for archiving, validated by default.
  • You need languages beyond English, since Tesseract covers 100+ languages through language packs.
  • You want to run on CPU only, using all cores, with no GPU.

Choose SmolDocling if

  • You need structured output such as Markdown, HTML, JSON, LaTeX or bounding boxes, which OCRmyPDF does not produce.
  • You want one 256M-parameter model to handle text, tables, code, formulas and charts with location tags.
  • You are testing small document models on English pages and want about 0.35 seconds per page on an A100 with vLLM.

Key differences

OCRmyPDFSmolDocling
What it doesAdds a Tesseract OCR text layer to scanned PDFsConverts pages to DocTags for Docling using a 256M vision-language model
Output formatsSearchable PDF (PDF/A by default) and plain textDocTags, Markdown, HTML, JSON, LaTeX, bounding boxes
LicenceMPL-2.0Apache-2.0 per the model summary; the metadata tag says CDLA-Permissive-2.0
HardwareCPU only, spreads work across all coresSpeed figure given on an A100 with vLLM; small enough for modest hardware
Languages100+ through Tesseract language packsEnglish only
BenchmarksNot publishedTable TEDS 0.82 on FinTabNet at 150dpi, full-page OCR F1 0.80, OCRBench 338 (reported by the authors)
Known failureHangs on PDFs whose forms share one Resources dictionary (issue #1763); --skip-text with default PDF/A output removes form fields (issue #1790)Output can loop on some images and become very slow (Docling issue #1515); endless token repetition and missing closing tags are listed as typical defects

Sources

What each one is

OCRmyPDF

Command-line tool that adds a searchable text layer to scanned PDFs, using Tesseract.

OCRmyPDF details

SmolDocling

Tiny 256M vision model from Hugging Face and IBM that outputs DocTags. Predecessor of Granite Docling.

SmolDocling details

Try both on your own file

Run the file once with each model and compare the output.

PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?

Use one, fall back to the other

{"model": "ocrmypdf/ocrmypdf","fallbacks": ["huggingface/smoldocling"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

OCRmyPDF alternativesSmolDocling alternativesBest OCR models in 2026