Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -2396,7 +2396,9 @@ def make_chars(page, clip=None):
page_height = page.rect.height
ctm = page.transformation_matrix
TEXTPAGE = page.get_textpage(clip=clip, flags=FLAGS)
blocks = page.get_text("rawdict", textpage=TEXTPAGE)["blocks"]
# Word grouping needs font-metric boxes, not individual glyph outlines.
char_flags = FLAGS & ~pymupdf.TEXT_ACCURATE_BBOXES
blocks = page.get_text("rawdict", clip=clip, flags=char_flags)["blocks"]
doctop_base = page_height * page.number
for block in blocks:
for line in block["lines"]:
Expand Down
Loading
Loading