feat: support xlsm files (#1520)

* code for xlsm support

* updated support for xlsm

* updated code for xlsm support

* Update docling_parse_v4_backend.py

Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com>

* Update docling_parse_v4_backend.py

Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com>

* Update test_backend_msexcel_xlsm.py

 updated the tests/test_backend_msexcel_xlsm.py:

 have a function starting with test
removed all print statements
** To add an explicit assert {test}=={pred}

Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com>

* Update base_models.py

Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com>

* Update test_backend_msexcel.py

Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com>

* Update test_backend_msexcel_xlsm.py

Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com>

* Update document_converter.py

Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com>

* Delete tests/test_backend_msexcel_xlsm.py

Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com>

* xlsm file

Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com>

* run tests

* ran tests

* Fix tests, upgrade XSLM example to a valid file

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

---------

Signed-off-by: ShiroYasha18 <85089952+ShiroYasha18@users.noreply.github.com>
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Co-authored-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
Ayraf
2025-06-10 20:25:59 +05:30
committed by GitHub
parent 6613b9e98b
commit df140227c3
19 changed files with 4834 additions and 632 deletions

View File

@@ -0,0 +1,22 @@
| Product | Date | Quantity | Revenue |
|-----------|---------------------|------------|-----------|
| Widget A | 2024-01-01 00:00:00 | 5 | 5000 |
| Widget B | 2024-01-02 00:00:00 | 10 | 12000 |
| Widget C | 2024-01-03 00:00:00 | 3 | 3000 |
| Widget D | 2024-01-04 00:00:00 | 8 | 8000 |
| Widget A | 2024-01-05 00:00:00 | 7 | 7000 |
| Widget B | 2024-01-06 00:00:00 | 6 | 6000 |
| Widget C | 2024-01-07 00:00:00 | 12 | 15000 |
| Widget D | 2024-01-08 00:00:00 | 9 | 9000 |
| Widget A | 2024-01-09 00:00:00 | 4 | 4000 |
| Widget B | 2024-01-10 00:00:00 | 11 | 11000 |
| Widget C | 2024-01-11 00:00:00 | 5 | 5000 |
| Widget D | 2024-01-12 00:00:00 | 8 | 8500 |
| Widget A | 2024-01-13 00:00:00 | 6 | 6200 |
| Widget B | 2024-01-14 00:00:00 | 7 | 7100 |
| Widget C | 2024-01-15 00:00:00 | 10 | 10500 |
| Widget D | 2024-01-16 00:00:00 | 3 | 3200 |
| Widget A | 2024-01-17 00:00:00 | 9 | 9400 |
| Widget B | 2024-01-18 00:00:00 | 12 | 12500 |
| Widget C | 2024-01-19 00:00:00 | 6 | 6100 |
| Widget D | 2024-01-20 00:00:00 | 8 | 8900 |