Docling vs OCRmyPDF
Pick Docling when you need structured output (Markdown, HTML or lossless JSON with layout and tables) from born-digital PDFs and Office files, for example RAG ingestion. Pick OCRmyPDF when you have scanned PDFs and need a searchable PDF/A archive. The main split is output: Docling gives structured documents, OCRmyPDF gives the same PDF with a text layer added.
Doclingibm/docling | OCRmyPDFocrmypdf/ocrmypdf | |
|---|---|---|
| Type | Open source | Open source |
| Price | 2 credits / page | 1 credit / page |
| Per 1,000 pages | $2.00 | $1.00 |
| Typical speed | 2.2 s / page | 1.0 s / page |
| Best for | Structured export for RAG | Searchable PDFs from scans |
| Inputs | PDF, images, DOCX | PDF, images |
| Languages | Latin scripts, CJK | 100+ languages (via Tesseract) |
| Max pages per request | 500 | 1,000 |
| Tables | ✓ Yes | No |
| Handwriting | No | No |
| Math | ✓ Yes | No |
| Bounding boxes | ✓ Yes | No |
| Confidence | No | No |
| Forms | No | No |
| Multilingual | No | ✓ Yes |
| On OCRRouter | Available | Available |
Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.
Which to choose
Choose Docling if
- It reads PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails and XBRL through one API.
- Its lossless JSON export keeps layout, reading order and table structure, and it also writes Markdown, HTML, DocTags and plain text.
- You can plug in OCR engines (EasyOCR, Tesseract, RapidOCR) or the 258M GraniteDocling VLM.
Choose OCRmyPDF if
- It produces validated searchable PDF/A by default, which suits archives and compliance workflows.
- It adds the OCR layer losslessly where possible, without re-encoding other content in the PDF.
- It uses Tesseract, so it covers 100+ languages through language packs, and it spreads work across all CPU cores.
Key differences
| Docling | OCRmyPDF | |
|---|---|---|
| What it does | Converts PDFs, Office files, HTML and images into a structured DoclingDocument | Adds a Tesseract text layer to scanned PDFs |
| Output formats | Markdown, HTML, JSON, DocTags, plain text | Searchable PDF (PDF/A), plain text |
| Input formats | PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails, XBRL | Scanned PDFs |
| OCR engine | Pluggable: EasyOCR, Tesseract, RapidOCR, or VLMs like GraniteDocling. Scan accuracy depends on the engine you choose. | Tesseract only. Accuracy is capped by Tesseract. |
| Licence | MIT (individual models have their own licences) | MPL-2.0 |
| Hardware | macOS, Linux and Windows on x86_64 and arm64. CPU works, GPU speeds up model stages. | CPU only, uses all cores |
| Known failure | Version 2.143.1 drops words and numbers with full-page Tesseract OCR (issue #5254). Reading order can merge neighbouring columns (issue #5132). | --deskew --clean-final can double or quadruple file size (issue #948). --skip-text with default PDF/A output removes form fields (issue #1790). |
Sources
- Docling GitHub README
- Supported formats
- Issue #5254 OCR regression
- OCRmyPDF GitHub README
- Issue #948 file size
- Issue #1790 form fields
What each one is
OCRmyPDF
Command-line tool that adds a searchable text layer to scanned PDFs, using Tesseract.
OCRmyPDF detailsTry 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": "ibm/docling","fallbacks": ["ocrmypdf/ocrmypdf"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Docling vs RapidOCRDocling vs EasyOCRTesseract vs OCRmyPDFMinerU vs OCRmyPDFLlamaParse vs DoclingPaddleOCR-VL vs DoclingMinerU vs DoclingDocling vs Tesseract
Docling alternativesOCRmyPDF alternativesBest OCR models in 2026