Skip to content

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

feat: update DOCX processing to change test document path and enhance chart handling with improved content structure

myhloli5026faa4584b
diff --git a/mineru/backend/office/docx_analyze.py b/mineru/backend/office/docx_analyze.py
index c58fb1f1..78152445 100644
--- a/mineru/backend/office/docx_analyze.py
+++ b/mineru/backend/office/docx_analyze.py
@@ -29,7 +29,7 @@ def office_docx_analyze(
return middle_json, results
if __name__ == '__main__':
- docx_path = "/Users/myhloli/projects/20240809magic_pdf/Magic-PDF/mineru/model/docx/drawingml.docx"
+ docx_path = "/Users/myhloli/projects/20240809magic_pdf/Magic-PDF/mineru/model/docx/test.docx"
from mineru.data.data_reader_writer import FileBasedDataWriter
with open(docx_path, 'rb') as f:
file_bytes = f.read()
diff --git a/mineru/model/docx/test.docx b/mineru/model/docx/test.docx
index 5b856b63..12c1cb12 100644
Binary files a/mineru/model/docx/test.docx and b/mineru/model/docx/test.docx differ