How to use the pdfplumber.table.TableFinder function in pdfplumber

To help you get started, we’ve selected a few pdfplumber examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jsvine / pdfplumber / pdfplumber / display.py View on Github external
def debug_tablefinder(self, tf={}):
        if isinstance(tf, TableFinder):
            pass
        elif isinstance(tf, dict):
            tf = self.page.debug_tablefinder(tf)
        else:
            raise ValueError("Argument must be instance of TableFinder or a TableFinder settings dict.")

        for table in tf.tables:
            self.debug_table(table)

        self.draw_lines(tf.edges, stroke_width=1)

        self.draw_circles(tf.intersections.keys(),
            fill=COLORS.TRANSPARENT,
            stroke=COLORS.BLUE + (200,),
            radius=3)
        return self
github jsvine / pdfplumber / pdfplumber / page.py View on Github external
def find_tables(self, table_settings={}):
        return TableFinder(self, table_settings).tables
github jsvine / pdfplumber / pdfplumber / page.py View on Github external
def debug_tablefinder(self, table_settings={}):
        return TableFinder(self, table_settings)