Skip to content
Open
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
7 changes: 4 additions & 3 deletions pdftables/pdftables.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,15 +480,16 @@ def hints_y():
miny = float("-inf")
maxy = float("+inf")

glyphs = [glyph for glyph in box_list if glyph.text is not None]
words = make_words(box_list)
words = [word for word in words if word.text is not None]

if table_top_hint:
top_box = [box for box in glyphs if table_top_hint in box.text]
top_box = [box for box in words if table_top_hint in box.text]
if top_box:
miny = top_box[0].top

if table_bottom_hint:
bottomBox = [box for box in glyphs
bottomBox = [box for box in words
if table_bottom_hint in box.text]
if bottomBox:
maxy = bottomBox[0].bottom
Expand Down