Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
fix: extend text block handling to include reference text in draw_bbox.py
myhlolic5b2926c7bea
diff --git a/mineru/utils/draw_bbox.py b/mineru/utils/draw_bbox.pyindex 0011cd77..bc422691 100644--- a/mineru/utils/draw_bbox.py+++ b/mineru/utils/draw_bbox.py@@ -176,7 +176,7 @@ def draw_layout_bbox(pdf_info, pdf_bytes, out_path, filename):codes_caption.append(bbox)elif block["type"] == BlockType.TITLE:titles.append(bbox)- elif block["type"] == BlockType.TEXT:+ elif block["type"] in [BlockType.TEXT, BlockType.REF_TEXT]:texts.append(bbox)elif block["type"] == BlockType.INTERLINE_EQUATION:interequations.append(bbox)