pypi / docling-slim
docling-slim
What changed in docling-slim 2, from its official release notes, upgrade guides and advisories. Also covers docling. Sources checked 2026-10-31.
1 breaking8 security3 new APIs and options1 behavior and defaults30 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initdocling-slim 243 changes
Breaking changes 1
Email processing no longer copies .msg attachment content.
Security 8
Docling: Configured HTTP headers sent to every remote image host named by a document
Docling has arbitrary file read/write (and command execution when shell-escape is enabled) when rendering untrusted TikZ with the opt-in Tectonic engine
Docling has SSRF guard bypass in remote resource fetching (DNS rebinding / multi-record resolution; no IP validation in HTML render mode)
Docling: Crafted DoclingDocument JSON embeds local image files into converted output
Docling imports plugin entry points before the allow_external_plugins check
Docling: METS-GBS archive member limit enforced after full member enumeration (memory exhaustion during format detection)
Docling: Unbounded table rowspan/colspan in HTML, JATS, ODS and BoxNote backends causes CPU/memory exhaustion
Docling:
enable_local_fetchis not enforced in HTML browser-rendering mode
New APIs and options 3
Adds a release method to InputDocument.
RapidOCR detects page orientation.
Adds --heading-hierarchy and allows running the heading style signal without generate_parsed_pages.
Behavior and default changes 1
Broken PDF text layers are replaced with OCR.
Fixes and other changes 30
A page is retained when a Chandra table is too large.
The service client no longer sends the default page range in request options.
DocLang locations are scaled to the page size.
Empty cells are no longer created while finding XLSX tables.
The target of an ext-link is retained in a mixed JATS citation.
JATS captions no longer render the literal text None.
JATS tables with a single header row span are retained.
Native VLM inline math is preserved through exports.
XLSX currency, percent, and date number formats are retained.
Page backend references are dropped when unloading.
Importing presets no longer initializes MLX.
HTML rows stored in tfoot are retained.
NUL characters from unmapped glyphs are replaced with U+FFFD.
Leading YAML frontmatter is stripped instead of being misparsed.
Normalizes Arabic presentation forms in extracted PDF text.
Drops spaces around Chandra br line breaks.
Ignores whitespace between Chandra list paragraphs.
Forwards temperature and anti-hallucination options to mlx-whisper.
Recognizes Symbol and Wingdings private-use bullets as list markers.
Reads heads split by a spanning block from top to bottom.
Prevents concurrent conversions from crashing the tesserocr engine.
Imports torch lazily in the transformers ASR decoder.
Treats zero DPI metadata as missing.
Skips macOS metadata members in ZIP inputs.
The header row is counted against the chart table cell cap.
Shapes whose text is only whitespace are skipped.
OCR word cells are kept in table tokens.
OCR cells are added to table tokens alongside native words.
Full-page OCR reads the page's parsed_page for table tokens.
The render resolution is passed to the Tesseract CLI.