docling-project / docling-project/docling

Table omission in conversion from Docling Document to markdown

Open
#1,738 1 comment 0 reactions 0 assignees View on GitHub
bug triage/close-stale
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### Bug

When converting a document from PDF to Markdown, **the entirety of the second table in the document is omitted**. Upon investigation, this issue persists regardless of the PDF backend and OCR engine used, and was only slightly fixed by using the VLM setting (although this caused a different set of inaccuracies).

When reviewing the Docling Document preview and JSON with Docling-Serve's UI, it appears that the table and its content are captured correctly. The ref to the table appears as a child of the body, and the content in the table is correct. However, the Markdown format was again missing the table (now converted with Docling-Serve rather than Docling in a Jupyter Notebook).

![Image](https://github.com/user-attachments/assets/2378f3af-5143-48c1-85e5-7ce6300d1437)

![Image](https://github.com/user-attachments/assets/182b034e-1850-469c-9cfe-1530eef1f5ef)

![Image](https://github.com/user-attachments/assets/9f4f0c8b-1b9d-41c3-8b0c-49da70bed611)

### Steps to reproduce
To reproduce the bug exactly as I did, run [the notebook in this repository](https://github.com/Ryfernandes/docling-table-omission/blob/main/multiple_conversion_settings.ipynb) (runs conversion for 15 different PDF backend and OCR engine configurations, can remove to just convert with default settings).

Alternatively, download the (publicly accessible, no sensitive content) file below and convert it to markdown with any non-VLM Docling pipeline.

[02_BofA_CoreChecking_en_ADA.pdf](https://github.com/user-attachments/files/20658899/02_BofA_CoreChecking_en_ADA.pdf)

### Docling version
Docling version: 2.33.0
Docling Core version: 2.31.1
Docling IBM Models version: 3.4.3
Docling Parse version: 4.0.1
Python: cpython-312 (3.12.7)
Platform: macOS-15.5-arm64-arm-64bit

### Python version
Python 3.12.7

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.