How to use the pdfplumber.utils.to_list 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 draw_vlines(self, locations, **kwargs):
        for x in utils.to_list(locations):
            self.draw_vline(x, **kwargs)
        return self
github jsvine / pdfplumber / pdfplumber / display.py View on Github external
def draw_lines(self, list_of_lines, **kwargs):
        for x in utils.to_list(list_of_lines):
            self.draw_line(x, **kwargs)
        return self
github jsvine / pdfplumber / pdfplumber / display.py View on Github external
def draw_rects(self, list_of_rects, **kwargs):
        for x in utils.to_list(list_of_rects):
            self.draw_rect(x, **kwargs)
        return self
github jsvine / pdfplumber / pdfplumber / display.py View on Github external
def draw_circles(self, list_of_circles, **kwargs):
        for x in utils.to_list(list_of_circles):
            self.draw_circle(x, **kwargs)
        return self