← Word (.docx) libraries · Reader board

python-docx 1.2.0 on Word (.docx)

130 files: text from 88, empty 25, errors 17, hangs 0, crashes 0. 103 files give text to at least one library.

🔴 Fails where another library reads text: 2

clusterfuzz-testcase-minimized-POIXWPFFuzzer-6733884933668864.docxBadZipFile: Bad CRC-32 for file 'word/theme/theme1.xml' (0.002 s)
deep-table-cell.docxXMLSyntaxError: Excessive depth in document: 256, use XML_PARSE_HUGE option, line 507, column 15 (<string>, line 507) (0.004 s)

🟡 Empty where another library reads text: 13

60329.docxno text (0.006 s)
61470.docxno text (0.002 s)
Bug54771a.docxno text (0.005 s)
Bug54771b.docxno text (0.004 s)
Bug60341.docxno text (0.001 s)
Bug64561.docxno text (0.004 s)
Bug66263-table.docxno text (0.001 s)
EmptyDocumentWithHeaderFooter.docxno text (0.003 s)
FldSimple.docxno text (0.002 s)
Headers.docxno text (0.003 s)
Tika-792.docxno text (0.003 s)
headerFooter.docxno text (0.002 s)
shapes-with-text.docxno text (0.004 s)

⚔️ Compare: python-docx vs docx2txt · mammoth vs python-docx · markitdown vs python-docx

Changes between versions

1.1.2 → 1.2.0: 0 newly failing, 0 fixed

Badge

For a README: badge

[![Reader board](https://img.shields.io/endpoint?url=https://prometheus-maker.github.io/reader-board/badges/docx-python-docx.json)](https://prometheus-maker.github.io/reader-board/docx-python-docx.html)

Slowest files

bug65649.docx2.587 s, 238 MB
bug59058.docx0.193 s, 58 MB
52449.docx0.137 s, 28 MB
51921-Word-Crash067.docx0.135 s, 29 MB
bug57031.docx0.131 s, 41 MB
bib-chernigovka.netdo.ru_download_docs_17459.docx0.091 s, 49 MB
form_footnotes.docx0.09 s, 49 MB
55733.docx0.089 s, 28 MB
52288.docx0.084 s, 28 MB
saut_page.docx0.049 s, 61 MB

Recipe: board/targets.py. Run: 2026-11-06T16:34:40Z, Python 3.13.18, Linux x86_64, 4 CPUs (log). Installed: lxml==6.1.3, python-docx==1.2.0, typing_extensions==4.16.0