extract_tables() return a empty list #526
sunday-will
started this conversation in
Ask for help with specific PDFs
Replies: 1 comment 1 reply
-
Hi @sunday-will Appreciate your interest in the library. To extract the tables from the shared PDF, you should use the following table settings with pdfplumber.open("xxxx.pdf") as pdf:
page = pdf.pages[0]
ts = {
"vertical_strategy": "explicit",
"horizontal_strategy": "explicit",
"explicit_vertical_lines": p.curves+p.edges,
"explicit_horizontal_lines": p.curves + p.edges,
}
tables = page.extract_tables(table_settings=ts)
print(tables) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello!
problem:
here is the pdf with two tables,but extract_tables() return a empty list. thx!
code:
environment:
Beta Was this translation helpful? Give feedback.
All reactions