docling icon indicating copy to clipboard operation
docling copied to clipboard

docx Some paragraphs in the docx cannot be recognized

Open Yuanyi1104 opened this issue 10 months ago • 3 comments

When using docling, I found that it cannot recognize paragraph (a) when parsing a docx document, but it can recognize paragraphs (b), (c), (d), etc. Why is this happening? Converting it to PDF also does not work.

The original text of the document is as follows:

Image Image

The results of parsing using docling are as follows:

Image Image

Yuanyi1104 avatar Jan 05 '26 03:01 Yuanyi1104

Hi @Yuanyi1104! I'm Dosu and I’m helping the docling team.

There are several known reasons why some paragraphs in a docx file might not be recognized by docling:

  • If a list (numbered or bulleted) appears immediately after a heading, docling may skip the list because it expects lists to be grouped under a ListGroup, not directly under a heading. Adding a line break or section break before the list in the source document, or patching the backend to insert a ListGroup, can help work around this issue (details).
  • Paragraphs starting with images may have their text ignored in the output (details).
  • Tables with merged cells or single-row tables can cause missing content; recent versions of docling have improved handling for these cases (details).
  • Paragraphs with missing or empty style names used to be skipped or cause errors, but this was fixed in a recent update—make sure you are using the latest version (details).
  • By default, docling excludes headers and footers (the FURNITURE content layer) from exports. If your missing paragraphs are in headers or footers, you need to explicitly include them when exporting via the Python API. The CLI and API do not support this option (details).
  • Complex or "broken" internal docx structures (like spans/frames inside headings) can cause docling to miss content. Sometimes converting the docx to HTML, cleaning up the structure, and converting back can help, but this is fragile (details).

If you share more about which paragraphs are missing and how they're formatted, I can help narrow down the cause and suggest a more targeted workaround.

To reply, just mention @dosu.


Docs are dead. Just use Dosu.

Leave Feedback Ask Dosu about docling Share Dosu with your team

dosubot[bot] avatar Jan 05 '26 03:01 dosubot[bot]

Thanks @Yuanyi1104 for reporting this issue. It may be that the nested lists are not correctly identified. I presume that the example in the issue description cannot be shared. Could it be possible to share an example with some dummy text, preserving the list structure? That would help us understand the issue.

ceberam avatar Jan 05 '26 08:01 ceberam

@Yuanyi1104 it is not possible to give a proper assessment of the issue if we cannot reproduce it through an example. We have released some fixes around list items in docx since you reported this issue. It may be that your documents can be now parsed as expected. I will close this issue. If the problem persists, please feel free to open it again.

ceberam avatar Apr 21 '26 10:04 ceberam