Docling Guides & Tutorials
Everything we know about running IBM Docling — the OCR and layout pipeline, the install pain, the CLI and Python API, docling-serve, the MCP server, chunking for RAG, and where Docling loses to something else. Grouped so you can go from "what is this" to "table in Excel" without reading all of it.
Start here
What Docling is, what its OCR layer actually does, and where it breaks.
What is Docling?
IBM Research's open-source document parser: layout analysis, TableFormer tables, OCR backends, and what "document AI" means in practice.
Readdocling ocr scanned pdf · docling ocrDocling OCR for Scanned PDFs
Why Docling was engineered for image documents: handling non-text scans, multi-column paper reading orders, and recovering borderless tables with TableFormer.
Readdocling ocrDocling OCR, explained
Where OCR sits in the Docling pipeline, when it runs at all, and why a text PDF can skip it entirely.
Readdocling ocr engineDocling OCR engines compared
RapidOCR, EasyOCR, Tesseract, ocrmac, Nemotron and KServe side by side — install extras, speed, language support, and which to pick.
Readdocling accuracy · docling limitationsDocling accuracy & limitations
What Docling gets right (tables, loud failures) and what it drops (formulas, images, weak scan OCR) — so you know when to trust it.
Readdocling ocr online · docling web uiDocling OCR online (no install)
Run the same pipeline in a browser when you do not want Python, CUDA or a 2 GB model download.
ReadInstall & run
The part that takes an afternoon: dependencies, GPU drivers, models, and platforms that fight back.
Install Docling
pip, uv, extras, CPU-only wheels, Apple Silicon, Intel Mac workaround, CUDA images, and pre-downloading models for offline machines.
Readdocling cli · docling convertDocling CLI reference
The commands and flags that matter: docling convert, --to md/json/doctags/chunks, --ocr-engine, --pipeline vlm, --device, --table-mode.
Readdocling python apiPython API quickstart
DocumentConverter in ten lines, exporting Markdown, JSON and DocTags, and the pipeline options worth setting.
Readdocling error · docling slow · docling troubleshootingTroubleshooting Docling in Production
Silent CPU fallbacks, PyMuPDF ONNX conflicts, 72 DPI layout misses on dense tables, single-span cell clumping, disappearing 0-cell tables, and pipeline queue latency.
Readdocling slow · docling gpu · docling performanceDocling speed & performance
Where the time actually goes and the knobs that move it: --no-ocr, GPU vs CPU, thread count, chunking, and OCR engine choice — with real measured numbers.
Readdocling ocr language · docling chineseOCR languages & language packs
How Docling passes languages to each engine, the iso: prefix, CJK behaviour, and why a missing model raises instead of falling back.
ReadServe it to other software
Docling as an HTTP API, as an MCP tool, and as a chunker inside a RAG stack.
docling-serve: REST API & UI
pip install docling-serve, the 5001 port, Docker and CPU/CUDA images, convert and chunk endpoints, and when a hosted queue beats a local server.
Readdocling mcp · docling mcp serverDocling MCP server
Expose Docling to Claude Desktop, Cursor and local agents through docling-mcp — install, transport, and the tools it exposes.
Readdocling chunking · hybrid chunkerChunking for RAG
Why fixed-size chunks wreck tables, what the hybrid chunker does with Docling's structure, and how to keep a row attached to its header.
Readdocling rag · docling without gpuRAG without CUDA
Running Docling ingestion on machines with no NVIDIA GPU — CPU threads, Apple MPS, and when to push the work off-box entirely.
Readdocling vlm · granite doclingThe VLM pipeline
Granite Docling and other vision-language models: what --pipeline vlm changes, what it costs in VRAM, and when the standard pipeline is the better answer.
ReadComparisons
Honest side-by-sides, including the cases where Docling is the wrong choice.
Docling vs Marker
Two open-source parsers with different philosophies: TableFormer tables versus Surya layout, and MIT versus GPL-3.0.
Readdocling vs mathpixDocling vs Mathpix
Free self-hosted OCR against a paid, API-first math and table extractor — accuracy, cost, and privacy trade-offs.
Readdocling vs geminiDocling vs Gemini
Multimodal reading against provable structure: Gemini wins formulas and blur; Docling keeps cell-level tables and bounding-box provenance that survives an audit.
Readdocling vs llamaparseDocling vs LlamaParse
Open-source pipeline against a managed parsing API: where the hosted service earns its per-page fee, and where it does not.
Readdocling vs mineruDocling vs MinerU
Both grew out of academic PDF pain. MinerU leans formula and CJK; Docling leans schemas and table structure — pick by document, not by hype.
Readdocling vs unstructuredDocling vs Unstructured
A parser built around a document object model against one built around element partitioning into chunks.
Readdocling alternativesDocling alternatives
The realistic alternative set — Marker, MinerU, LlamaParse, Unstructured, hosted UIs — and the question that decides between them.
ReadGetting data out
Turning parsed documents into files people actually use: spreadsheets, CSVs, Markdown, QuickBooks.
PDF to Markdown with Docling
The command, the Python call, what the Markdown export keeps (reading order, headings) and what it throws away (cell spans, page numbers).
Readdocling json · pdf to json pythonPDF to JSON with Docling
export_to_dict(), the --to json and --to doctags flags, and why structured output keeps the tables and geometry that Markdown drops.
Readdocling to excelDocling to Excel
Tables come out of Docling as structured data; getting them into a spreadsheet that sums correctly is a separate step. Here is the path.
Readextract pdf tables to excelPDF tables to Excel
What has to survive a conversion — cell spans, unit rows, negatives — and the checks that catch silent breakage.
Readarxiv pdf to markdownPapers to Markdown
Double-column arXiv layouts, formulas and footnotes without the reading order collapsing.
Readarxiv to obsidianPapers into Obsidian & Notion
From PDF to a note system that stays searchable: Markdown shape, asset handling and naming.
Readpdf to excel for accountantsPDF to Excel for accountants
A workflow with an audit trail: what to verify, how to keep provenance, and importing to QuickBooks or Xero.
Readbank statement analysisBank statement analysis
Once the statement is in Excel: deposit consistency, average daily balance, NSF activity and negative days.
ReadTools & background
Converters that use the pipeline, and the engineering notes behind them.
All converters
Fourteen task pages: bank statements, invoices, receipts, 10-Ks, credit cards, bulk PDFs, handwriting, CSV, Google Sheets and QuickBooks.
Readocr table extractionHow OCR table extraction works
Pixels to spreadsheet rows: detection, cell recognition, structure inference, and the checks that catch mistakes.
Readwhy pdf to excel loses formattingWhy PDFs lose their formatting
A PDF stores glyphs at coordinates, not cells. Everything downstream follows from that.
Readdocling privacyArchitecture & privacy
How the browser viewer handles files and usage requests, with setup notes for local Docling.
Readopen source document ai · document ai licenceOpen-source document AI
Three different claims wear one label: permissive source code, released model weights, and a hosted API with a public repository.
Readdocling faqDocling FAQ
Short answers to the questions that come up most often about Docling, OCR, MIT licensing, and online playgrounds.
ReadDon't want to install Python?
Most of these guides exist because setup is the hard part. If you only need to see the output, the recorded run on the online page shows the same pipeline without installing anything.