Extracting only first table in PDF #970
outsu
started this conversation in
Ask for help with specific PDFs
Replies: 1 comment 1 reply
-
Does this achieve your goal?: tables = page.find_tables() # Sorted from top to bottom, left to right
print(tables[0].extract()) |
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
-
I want to extract only first table, where the closest one of the top of the page. But the table where bottom, sometimes it's bigger than that. So, extract_table() doesn't work. I can't use any positional setting, because PDF will be change in time, the first table may has a different numbers of rows.
So, How do I extract only first table in a page?
Beta Was this translation helpful? Give feedback.
All reactions