Skip to content

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

fix: add handling for reference text blocks in draw_bbox.py

myhloli5b73b89ceb5b
diff --git a/mineru/utils/draw_bbox.py b/mineru/utils/draw_bbox.py
index bc422691..9ed0368a 100644
--- a/mineru/utils/draw_bbox.py
+++ b/mineru/utils/draw_bbox.py
@@ -211,6 +211,7 @@ def draw_layout_bbox(pdf_info, pdf_bytes, out_path, filename):
for block in page["para_blocks"]:
if block["type"] in [
BlockType.TEXT,
+ BlockType.REF_TEXT,
BlockType.TITLE,
BlockType.INTERLINE_EQUATION,
BlockType.LIST,