mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 16:40:24 +08:00
Fix issue #176, re. extract_table ignoring kwargs
This commit is contained in:
+7
-1
@@ -164,7 +164,13 @@ class Page(Container):
|
||||
|
||||
def extract_tables(self, table_settings={}):
|
||||
tables = self.find_tables(table_settings)
|
||||
return [ table.extract() for table in tables ]
|
||||
|
||||
extract_kwargs = dict((k, table_settings["text_" + k]) for k in [
|
||||
"x_tolerance",
|
||||
"y_tolerance",
|
||||
] if "text_" + k in table_settings)
|
||||
|
||||
return [ table.extract(**extract_kwargs) for table in tables ]
|
||||
|
||||
def extract_table(self, table_settings={}):
|
||||
tables = self.find_tables(table_settings)
|
||||
|
||||
Reference in New Issue
Block a user