docling-project / docling-project/docling

Issue with loss of trailing zeros in formatted numbers during PDF parsing

Open
#1,891 3 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### Bug
When parsing PDFs containing numbers with thousand separators (e.g., “16.000”), Docling incorrectly transforms these numbers by removing trailing zeros or altering the values (for example, “16.000” becomes “16”).
I have tried adjusting pipeline settings, such as disabling cell matching, but the issue persists. This behavior impacts the accuracy of extracted numerical data.

### Steps to reproduce
Load a PDF containing numbers formatted with dots as thousand separators (e.g., “16.000”).

Parse the PDF with Docling using default settings or with cell matching disabled.

Observe that the numbers are altered, (but not always) losing zeros and becoming incorrect values (e.g., “16.000” becomes “16”).

### Docling version
Docling version: 2.36.1
...

### Python version
Python 3.13.4

![Image](https://github.com/user-attachments/assets/e578aff2-0086-40ad-8ffd-241f714dfdac)
![Image](https://github.com/user-attachments/assets/6a0b70e9-7ceb-46f9-ba2a-0836152f5db7)

...

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.