Docling

Docling parses multiple document formats and uses a unified DoclingDocument representation format.

Verified

On this page

What it is

Docling parses multiple document formats, including PDF, DOCX, PPTX, XLSX, HTML and EPUB. The project describes its DoclingDocument representation format as unified and expressive. The project was started by the AI for knowledge team at IBM Research Zurich. Docling is hosted as a project in the LF AI & Data Foundation.

Core facts

Read by a script from the official API, not rewritten by a model.

License
MIT
Languages
Python
Maintainer
docling-project
Verified

Main features

  1. The listed PDF capabilities cover page layout, reading order, table structure, code, formulas and image classification. After conversion, compare the Markdown with the original PDF: check whether heading levels preserve section relationships, whether paragraphs follow the original reading order, and whether table headings, cells and row-to-column associations remain correct. These are suggested checks. This article has not run conversion or confirmed that the example report was parsed without errors.

  2. Export formats and options include Markdown, HTML, WebVTT, DocLang, DocTags and lossless JSON.

  3. Docling supports several application-specific XML schemas, including DocLang, USPTO patents, JATS articles and XBRL financial reports.

  4. Docling parses XBRL and iXBRL documents for financial reports.

  5. The README lists local execution capabilities for sensitive data and air-gapped environments.

  6. The README lists OCR support for scanned PDFs and images.

  7. Audio support works with Automatic Speech Recognition (ASR) models.

  8. Docling parses calendar files with events, tasks, journal entries and free/busy times, including attendees, reminders and attachment names.

  9. The integrations listed include LangChain, LlamaIndex, Crew AI and Haystack for agentic AI.

  10. Docling can run as a service through the API server (docling-serve).

  11. Docling parses EPUB (Electronic Publication) files for e-books.

  12. Chart understanding covers Barchart, Piechart and LinePlot, converting them into tables or code and adding detailed descriptions.

  13. Docling parses plain-text files with the .txt and .text extensions, along with Markdown supersets with the .qmd and .Rmd extensions.

  14. Docling parses ODF files, meaning text documents, spreadsheets and presentations.

  15. Docling parses Apple Pages documents, Numbers spreadsheets and Keynote presentations.

  16. Docling also parses email files, including meeting invitations.

  17. Docling parses video files in MP4, AVI, MOV, MKV and WebM formats, producing an ASR transcript and representative keyframes.

Getting started

  1. Python 3.9 support was dropped in docling version 2.70.0.

  2. The note asks users to use at least Python 3.10.

  3. Docling works on macOS, Linux and Windows environments for both x86_64 and arm64 architectures.

  4. For the official CLI command example, the README describes a .md file containing structured document content in the current directory. The CLI and Python examples below use different PDF URLs, so compare each result with its own input. This description does not establish the same output path for every configuration, and it is not a record of a run performed for this article.

  5. GraniteDocling and other VLMs can also be used via the Docling command line.

  6. The recommended Python example passes a document URL to DocumentConverter. Its conversion result contains a document object; export_to_markdown exports text, which the example then prints. Follow the sequence from PDF to conversion result, document object and Markdown: the unified DoclingDocument is the intermediate representation, while Markdown is an export format. They are different outputs. The report heading in the code comment is an official expected-output illustration, not a result generated for this article.

  7. For more details on Docling's inner workings, the README points to the Docling Technical Report.

From the README
Shell
pip install docling
From the README
Shell
docling https://arxiv.org/pdf/2206.01062
From the README
python
from docling.document_converter import DocumentConverter

source = "https://arxiv.org/pdf/2408.09869"  # a document via a local path or URL
converter = DocumentConverter()
result = converter.convert(source)
print(result.document.export_to_markdown())  # output: "## Docling Technical Report[...]"

Who it is for

The Docling codebase is under the MIT license. For individual model usage, the README refers readers to the model licenses found in the original packages.

Sources

This page is written from the official sources below. Open them to check the original text.

Verified ·

This page is written by AI from the official sources above and checked automatically. This site has not tested it. Found a mistake? Tell us.