{"repo":"jsvine/pdfplumber","free":true,"listed":false,"github":"https://github.com/jsvine/pdfplumber","clone":"git clone https://github.com/jsvine/pdfplumber.git","description":"Plumb a PDF for detailed information about each char, rectangle, line, et cetera — and easily extract text and tables.","language":"Python","stars":10677,"topics":["pdf","pdf-parsing","table-extraction"],"license":"MIT","category":"media-processing","readme_excerpt":"pdfplumber Plumb a PDF for detailed information about each text character, rectangle, and line. Plus: Table extraction and visual debugging. Works best on machine-generated, rather than scanned, PDFs. Built on pdfminer.six . Currently tested on Python 3.10, 3.11, 3.12, 3.13, 3.14. Translations of this document are available in: Chinese (by @hbh112233abc). To report a bug or request a feature, please file an issue. To ask a question or request assistance with a specific PDF, please use the discussions forum. Table of Contents - Installation - Command line interface - Python library - Visual debugging - Extracting text - Extracting tables - Extracting form values - Demonstrations - Comparison to other libraries - Acknowledgments / Contributors - Contributing Installation Command line interface Basic example The output will be a CSV containing info about every character, line, and rectangle in the PDF. Options Argument Description ---------- ------------- --format [format] csv , json , or text . The csv and json formats return information about each object. Of those two, the json format returns more information; it includes PDF-level and page-level metadata, plus dictionary-nested attributes. The text option returns a plain-text representation of the PDF, using Page.extract text(layout=True) . --pages [list of pages] A space-delimited, 1 -indexed list of pages or hyphenated page ranges. E.g., 1, 11-15 , which would return data for pages 1, 11, 12, 13, 14, and 15. --types [list o","default_branch":null,"files":null,"tree":[],"storefront":"/r/jsvine","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jsvine/pdfplumber/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}