Azure Document Intelligence vs OCRmyPDF
Pick Azure Document Intelligence when you need structured data from invoices, receipts, IDs, W-2s or contracts, or when you already run on Azure. Pick OCRmyPDF when you need to make scanned PDFs searchable and archive them as PDF/A for free on your own CPUs. The main split is that Azure extracts structured data for a per-page fee, while OCRmyPDF only adds a text layer.
Azure Document Intelligenceazure/document-intelligence | OCRmyPDFocrmypdf/ocrmypdf | |
|---|---|---|
| Type | OCR API | Open source |
| Price | 60 credits / page | 1 credit / page |
| Per 1,000 pages | $60.00 | $1.00 |
| Typical speed | 1.5 s / page | 1.0 s / page |
| Best for | Enterprise forms and IDs | Searchable PDFs from scans |
| Inputs | PDF, images | PDF, images |
| Languages | 300+ languages | 100+ languages (via Tesseract) |
| Max pages per request | 2,000 | 1,000 |
| Tables | ✓ Yes | No |
| Handwriting | ✓ Yes | No |
| Math | No | No |
| Bounding boxes | ✓ Yes | No |
| Confidence | ✓ Yes | No |
| Forms | ✓ Yes | No |
| Multilingual | ✓ Yes | ✓ 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 Azure Document Intelligence if
- It has prebuilt models for invoices, receipts, IDs, W-2 and contracts, so you do not have to build extraction yourself.
- It returns JSON, Markdown, bounding boxes and searchable PDF, while OCRmyPDF returns only searchable PDF and plain text.
- It can run as a managed service or in disconnected containers for on-prem use, and it suits teams already on Azure.
Choose OCRmyPDF if
- It is free under MPL-2.0 and you pay only for your own compute, with no per-page fee.
- It produces validated searchable PDF/A by default and inserts the OCR layer losslessly where possible, which suits archives and office scanner pipelines.
- It uses Tesseract, so it covers 100+ languages via language packs and spreads work across all CPU cores.
Key differences
| Azure Document Intelligence | OCRmyPDF | |
|---|---|---|
| Licence | Proprietary | MPL-2.0, open source |
| How you run it | Managed service or containers, including disconnected containers | Local command-line tool, CPU only |
| Price | Read $1.50 per 1,000 pages ($0.60 above 1M); Layout and prebuilt $10 per 1,000; custom extraction $30 per 1,000; 500 free pages per month | Free, self-hosted; you pay for compute |
| Output formats | JSON, Markdown, plain text, bounding boxes, searchable PDF | Searchable PDF (PDF/A), plain text |
| Table benchmark | 82.7% on RD-TableBench (independent) | Not published |
| Handwriting | Not published | Not suited to handwriting |
| Known failure modes | Stacked models add up, for example Prebuilt plus Layout plus high-res add-on is $26 per 1,000 pages; the free tier processes only the first two pages of each document | File size can double or quadruple with --deskew --clean-final; --skip-text with default PDF/A output removes form fields; hangs on PDFs whose forms share one Resources dictionary |
Sources
- Azure pricing page
- Azure DI pricing breakdown
- Reducto RD-TableBench
- OCRmyPDF GitHub README
- Issue #948 file size
- Issue #1790 form fields
What each one is
Azure Document Intelligence
Azure layout model with tables, selection marks and prebuilt invoice and ID readers.
Azure Document Intelligence detailsOCRmyPDF
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.
Use one, fall back to the other
{"model": "azure/document-intelligence","fallbacks": ["ocrmypdf/ocrmypdf"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Azure Document Intelligence alternativesOCRmyPDF alternativesBest OCR models in 2026