diff --git a/camelot/handlers.py b/camelot/handlers.py index 8439c69..5896497 100644 --- a/camelot/handlers.py +++ b/camelot/handlers.py @@ -208,8 +208,6 @@ class PDFHandler(): if not suppress_stdout: logger.info( "Processing {rootname}".format(rootname=rootname)) - t = parser.extract_tables( - source_file - ) + t = parser.extract_tables() tables.extend(t) return TableList(sorted(tables)) diff --git a/camelot/parsers/hybrid.py b/camelot/parsers/hybrid.py index 9d12350..f240ce4 100644 --- a/camelot/parsers/hybrid.py +++ b/camelot/parsers/hybrid.py @@ -420,7 +420,7 @@ class Hybrid(BaseParser): return table - def extract_tables(self, filename): + def extract_tables(self): if self._document_has_no_text(): return [] diff --git a/camelot/parsers/lattice.py b/camelot/parsers/lattice.py index b7cb02e..2e62846 100644 --- a/camelot/parsers/lattice.py +++ b/camelot/parsers/lattice.py @@ -303,7 +303,7 @@ class Lattice(BaseParser): return table - def extract_tables(self, filename): + def extract_tables(self): if self._document_has_no_text(): return [] diff --git a/camelot/parsers/stream.py b/camelot/parsers/stream.py index 087f5ce..536195e 100644 --- a/camelot/parsers/stream.py +++ b/camelot/parsers/stream.py @@ -418,7 +418,7 @@ class Stream(BaseParser): return table - def extract_tables(self, filename): + def extract_tables(self): if self._document_has_no_text(): return []