docling-project / docling-project/docling
File format not allowed: file.docx
- Dominant language
- Python
- Stars
- 66.4k
- Forks
- 4.8k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 84
Description
### Bug
Trying to use the docling `DocumentConverter` as in the [simple conversion](https://ds4sd.github.io/docling/examples/minimal/) example on a .docx file gives the error `docling.exceptions.ConversionError: File format not allowed: file.docx`, but from the docling documentation docx should be supported. The files were created in a sharepoint drive using the web interface. Expected behaviour is the script running without errors.
### Steps to reproduce
Here is some information about the file and then the repro script
```bash
➜ file file.docx
file.docx: Microsoft Word 2007+
```
```bash
➜ file --mime-type -b file.docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document
```
```python
from docling.document_converter import DocumentConverter
source = "file.docx"
converter = DocumentConverter()
result = converter.convert(source)
print(result.document.export_to_markdown())
```
### Docling version
Docling version: 2.15.1
Docling Core version: 2.14.0
Docling IBM Models version: 3.1.2
Docling Parse version: 3.0.0
### Python version
Python 3.12.7
Contributor guide
Assessment
This issue has not been assessed yet.