Commit 0a9a6d3e authored by myhloli's avatar myhloli
Browse files

fix(magic_pdf): include List and Index block types in processing

Add List and Index to the list of block types being processed in the draw_bbox.py file. This inclusion ensures that these block types are handled similarly to other text-containing blocks, improving the overall document processing accuracy and consistency.
parent 1f1dd353
...@@ -237,6 +237,8 @@ def draw_span_bbox(pdf_info, pdf_bytes, out_path, filename): ...@@ -237,6 +237,8 @@ def draw_span_bbox(pdf_info, pdf_bytes, out_path, filename):
BlockType.Text, BlockType.Text,
BlockType.Title, BlockType.Title,
BlockType.InterlineEquation, BlockType.InterlineEquation,
BlockType.List,
BlockType.Index,
]: ]:
for line in block['lines']: for line in block['lines']:
for span in line['spans']: for span in line['spans']:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment