Layout-aware extraction
2.4 · Lesson

Layout-aware extraction

In Module 1, you used Docling's export_to_text() to pull text from PDFs. Alongside that text, Docling was simultaneously building a richer document model.

doc.texts exposes the structured part of that model: an ordered list of discrete layout items, one per visual element on the page, with each email header Full definition for label (opens in a new tab)A tag on a node that groups it with other nodes of the same kind. A node can carry more than one. and value potentially sitting in its own separate slot.