different table_settings for tables on the same page #753
erindavisdataiku
started this conversation in
Ask for help with specific PDFs
Replies: 2 comments 3 replies
-
Hi @erindavisdataiku, and fun/tricky topic! I'd suggest something like this: tables = page.find_tables(finder_settings)
e0 = page.crop(tables[0].bbox).extract_table(e0_settings)
e1 = page.crop(tables[1].bbox).extract_table(e1_settings) ... which could be refactored depending on how exactly you're determining which extraction settings apply to which tables. Does that help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think so, what is supposed to go in finder_settings? I'm assuming en_settings are the table_settings for each individual table? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I have multiple tables on a single pdf page and each table has different needs for table_settings. What I attempted to do was use extract(table_settings) on each table in my tables object (tables = AE_p2.find_tables() ), but I don't think I can use table_settings in the extract method. What's the best way to use different table_settings for the individual tables on each page.
Beta Was this translation helpful? Give feedback.
All reactions