Turning the body text, tables and formulas of a PDF into text that can be searched and handed to programs is a step that often comes up when organizing papers and materials. Docling is an open-source document parsing tool that converts documents in many formats into one document object and exports it to Markdown, JSON and other formats. This article follows the Docling GitHub README and the official documentation pages for the home, installation, usage, supported formats, FAQ, document model, architecture and command line reference, accessed on 26 November 2026. I did not install or run Docling and did not convert any document, so I have no test of how well layout, table or formula recognition works and only relay what the documentation says; the command line reference page is very long and I read only the parts on input and output, pipelines, OCR, tables and enrichment options, and I did not read its technical report.

What it is and which formats it reads and writes

The README says Docling simplifies document processing by parsing diverse formats, including advanced PDF understanding, and integrating with the generative AI ecosystem.[1] Its input list includes PDF, DOCX, PPTX, XLSX, HTML, EPUB, Apple Pages, Numbers and Keynote, audio, email, calendar files, images, LaTeX and plain text.[1] The supported formats page gives the full list: DOCX, XLSX and PPTX are the default Office formats, legacy DOC, XLS, PPT and RTF need LibreOffice, images such as PNG, JPEG and TIFF can be read, and audio and video need extra speech recognition extensions.[5] For output the page lists HTML, Markdown, lossless JSON, plain text, Doctags, LaTeX and chunked JSONL for retrieval-augmented generation, and in LaTeX output the images are only placeholders.[5] Everything is first converted into a unified DoclingDocument: the document model page says it keeps text, tables, pictures and key-value items in separate fields, uses a body tree to express reading order, puts content outside the body such as headers and footers in a furniture tree, and keeps a bounding box for each item when layout information is available.[7] The architecture page says the document converter has a default configuration per format, that backends and pipeline options can be changed, and that the Docling document in the result can be exported directly or passed to a serializer or a chunker.[8]

Dictionary page with green boxes marking OCR text segments

Figure: An old dictionary page with boxes marking OCR text segments, a general sketch of splitting a page into regions before recognizing text and not output from Docling. LA2 (uploader), Wikimedia Commons[10]

Installation and basic use

Installing takes pip install docling, or uv add docling with uv; the README and the installation page both say it works on macOS, Linux and Windows, on x86_64 and arm64, and the README adds that it needs Python 3.10 or higher and that Python 3.9 support was dropped in version 2.70.0.[1][3] The models depend on PyTorch; the installation page gives an install for CPU-only Linux and says that on Intel macOS newer PyTorch no longer ships wheels, so a special install such as docling[mac_intel] is needed.[3] There are two ways to use it. On the command line, docling followed by a file path or URL generates a .md file in the current directory;[1][4] in Python you convert with DocumentConverter and export with export_to_markdown, and the usage page adds that after conversion you can call result.input.release() to release the resources held by the input.[1][4] Among the options on the command line reference page, --to accepts md, json, yaml, html, text, doctags, chunks, latex and others and defaults to Markdown; --pipeline accepts legacy, standard, native, vlm and asr, with standard the default for PDF and images; --output sets the output directory and defaults to the current one.[9] I did not run these commands and did not check their output in the current version.

Layout, tables, formulas and references

The README sums up advanced PDF understanding as page layout, reading order, table structure, code, formulas and image classification, and offers extensive OCR support for scanned PDFs and images.[1] On the command line reference page OCR is on by default, --ocr-mode decides which regions go to the OCR engine, --ocr-lang takes a comma-separated list of language tags, and --table-mode accepts fast or accurate, with accurate the default.[9] Formula, code and picture classification, picture description and chart data extraction are enrichment options that must be turned on separately and are all off by default; for example --enrich-formula enables the formula enrichment model.[9] The installation page lists OCR engines including EasyOCR, Tesseract, OcrMac and RapidOCR; Tesseract is a system dependency that must be installed separately and needs TESSDATA_PREFIX set, and the page says the default automatic selection never picks Tesseract, so with no selectable engine it only logs a message and converts without OCR.[3] As for references: the README's coming soon list has metadata extraction, including title, authors, references and language, so on the pages I read this is still a future plan, and I found no description of how references are handled separately.[1] The documentation also states some limits: the FAQ says text styles such as bold and underline can currently be set only by declarative backends such as docx, pptx, markdown and html and are not yet possible for PDF, and that embedded WMF images in Word and PowerPoint are handled only on Windows and ignored on other systems.[6]

Running locally, license and known limits

The README lists local execution for sensitive data and air-gapped environments as a feature; the FAQ says Docling uses no remote service, so it can run in completely isolated environments, the only requirement being to point the runtime at the location where the model files are stored.[1][6] The PDF pipeline needs the model weights from ds4sd/docling-models on Hugging Face, while documents such as docx and pptx need none; when OCR is enabled some engines also need their own model files.[6] The FAQ also collects some installation pitfalls: opencv-python and opencv-python-headless installed together may conflict, and when libGL.so.1 cannot be found in a container without a graphical interface the preferred fix is to keep only the headless version; a certificate verification failure when downloading models from Hugging Face can be handled by updating certifi.[6] On license, the README says the codebase is under the MIT license and the individual models follow their own original licenses; the project was started by the AI for knowledge team at IBM Research Zurich and is hosted as a project of the LF AI & Data Foundation.[1] In my judgment, for someone with many PDFs the first thing to check is whether the tables and formulas in your own documents convert correctly, which needs your own samples; I did not do that and the pages give no accuracy figures.

References

  1. Docling project. docling-project/docling, GitHub, accessed 26 November 2026.
  2. Docling project. Docling documentation home, accessed 26 November 2026.
  3. Docling project. Installation, accessed 26 November 2026.
  4. Docling project. Usage, accessed 26 November 2026.
  5. Docling project. Supported formats, accessed 26 November 2026.
  6. Docling project. FAQ, accessed 26 November 2026.
  7. Docling project. Docling document, accessed 26 November 2026.
  8. Docling project. Architecture, accessed 26 November 2026.
  9. Docling project. CLI reference, accessed 26 November 2026.
  10. LA2 (uploader). Fragmented OCR segments.png, Wikimedia Commons, CC0.