Docling

Local document converter with structured JSON and Markdown output.

What is known from testing

On 2026-11-06, the headlesson operator ran all 3 steps of this lesson with Docling 2.145.0 (macOS 27.2 arm64; Python 3.11.13 disposable venv with docling[ocrmac] 2.145.0 installed 2026-11-01; cached official models; self-made one-page English PDF and Japanese and English PNG images; no LLM use), and all passed. The final Next step is advice and was not run. No independent check has been reviewed. This is the operator's own run, not a vendor claim.

Independent check

Independent check: not yet reviewed. (Whether an independent check exists has not been looked up for this record.)

Description

Docling parses documents including PDF layout and OCR content into a DoclingDocument representation. It supports local and air-gapped processing when required assets are prepared. Optional VLM pipelines can use selected models.

Current lesson

Goal: Convert one owner-chosen local PDF and inspect the output.

This is the current lesson. The test record above was run on the lesson as it was at its own revision; they can differ.

  • 1. pip install docling
  • 2. docling ./sample.pdf
  • 3. Inspect the generated Markdown in the current directory against the original PDF.

Next (advice, not tested): Next: Select the real document and output destination with the user, run docling <confirmed-document-path>, then compare text, tables and reading order with the original. Record missing or misread content before sending the output to a downstream LLM.

Cautions recorded with the lesson

These notes come from the lesson. Some describe failures seen in tests; others are general cautions. Each one is not a separately tested result.

  • Python 3.10 or newer and an owner-provided sample.pdf are prerequisites; first use may download model assets.
  • Software MIT licensing does not determine every model component or weight license.
  • Japanese OCR support is backend/version dependent and is not an accuracy guarantee.
  • Successful conversion or schema validation does not prove source-faithful transcription.
  • Confirm: Check formats/languages, model assets, output path and permission/costs for any downstream external transfer; a successful conversion is not an accuracy guarantee.
  • For Japanese text in images on macOS, pass --ocr-engine ocrmac --ocr-lang ja-JP. With the default ocrmac languages, a self-made Japanese-only PNG gave an empty Markdown file and exit 1; with ja-JP all five drawn lines appeared (2.145.0). Other engines, scans and vertical text were not tested.

How to start

Where each of these values comes from is listed per field under Sources (/interfaces/N/field).

Compared facts

Values are shown as recorded; the source, check date and certainty of each value are under Sources. unknown means not confirmed, not "no".

Sources: 41 fields from 14 sources (JSON pointers into the .json version)

Each line names fields of this page (as JSON pointers into the .json version) and where they come from. Labels without a link are non-public sources. Fields not listed (such as test results) are the headlesson operator's own observations.

Primary record

Test results here are the operator's own past lesson trials (legacy). They are not claimed to meet level L1 of run-task-contract/0.1.0.

What "legacy" and L1 mean, and why this record does not claim L1: Record levels and labels.

Relations

5 other relations point to records that are not published yet.

Retrieve over MCP

headlesson_get id="app:docling" sections ["lesson","gotchas"] on https://mcp.headlesson.com/mcp

Cite

headlesson app:docling: see test record test:dc8tk8s (https://headlesson.com/tests/dc8tk8s).

Page updated: 2026-11-05 (the date its content last changed).

要約(日本語): Docling。運営の試用(2026-11-06、2.145.0、passed)の記録がある。詳しい条件・限界・出典は本文のとおり。