Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: add fallback to HTML table extraction from Excel bytes in chart HTML extraction

myhloli64ad5b54b014
diff --git a/mineru/backend/utils/office_chart.py b/mineru/backend/utils/office_chart.py
index 783e3db1..28d593e3 100644
--- a/mineru/backend/utils/office_chart.py
+++ b/mineru/backend/utils/office_chart.py
@@ -94,6 +94,8 @@ def html_table_from_excel_bytes(excel_bytes: bytes) -> str:
def extract_chart_html_from_ooxml(chart_xml: bytes, workbook_bytes: bytes | None) -> str:
spec = parse_chart_spec_from_ooxml(chart_xml)
if spec is None or not spec.series:
+ if workbook_bytes:
+ return html_table_from_excel_bytes(workbook_bytes)
return ""
if workbook_bytes: