What this thread does
Do first: For local document conversion, use Python 3.10 or higher and install pip install docling.
Short answer
| Job | Documented tool capability |
|---|---|
| Extract PDF/image text through an API | Mistral OCR preserves structured content and supports separate table output. |
| Convert documents locally | Docling supports scanned-PDF/image OCR, layout, reading order, table structure and Markdown/JSON export, including local execution for air-gapped environments. |
| Extract business-document fields | Textract supports forms/tables, invoice/receipt analysis and supported identity documents. |
| Typeset a new PDF | Typst compiles markup into PDF. |
Capability sources: Mistral OCR docs, Docling README, Textract overview and Typst README.
What to do
| Tool | Exact action or option |
|---|---|
| Mistral | mistral-ocr-latest tracks the latest OCR model. table_format=null keeps Markdown tables inline; markdown extracts separate Markdown tables; html extracts separate HTML tables. extract_header and extract_footer return content in header and footer; by default headers/footers remain in main content. |
| Docling | Python 3.9 support ended in version 2.70.0; use Python 3.10+. The README’s docling https://arxiv.org/pdf/2206.01062 example creates a .md file in the current directory. |
| Textract | Use the Document Analysis API for text/forms/tables, Queries in the Analyze Document API for specified information, AnalyzeExpense for invoices/receipts, and AnalyzeID for U.S.-government-issued drivers licenses/passports. |
| Typst | typst compile file.typ produces file.pdf in the current directory. typst compile path/to/source.typ path/to/output.pdf chooses the output location; typst watch file.typ recompiles on changes. |
Option sources: Mistral OCR, Docling quickstart, Textract APIs and Typst usage.
Limits and open questions
These sources describe capabilities rather than a shared OCR accuracy benchmark or comparable per-page prices. Docling’s README says individual models have their own licenses. No extraction, table-accuracy check or PDF compilation was executed.
Not for: Puppeteer browser-print CSS or an OCR price comparison.
Sources
Checked
2026-11-17: Read Mistral OCR processor documentation, Docling README, Amazon Textract overview, Typst README; no command was run.
Started from a post by @Khuyen Tran, packaged by the editor. Original post