pdfplumber
Plumb a PDF for detailed information about each char, rectangle, line, et cetera — and easily extract text and tables. (by jsvine)
PyPDF2
A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files (by py-pdf)
pdfplumber | PyPDF2 | |
---|---|---|
29 | 30 | |
5,565 | 7,422 | |
- | 2.3% | |
8.2 | 9.5 | |
15 days ago | 3 days ago | |
Python | Python | |
MIT License | BSD 3-Clause |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pdfplumber
Posts with mentions or reviews of pdfplumber.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-30.
- Running OCR against PDFs and images directly in the browser
-
Google Scholar PDF Reader
- [pdfplumber](https://github.com/jsvine/pdfplumber)
- Parsing dates with PDFminer
-
How to Extract Data from Tables in a Public Record PDF
I recently published a story that was based on some data analysis I did of a report I obtained from the Department of Behavioral Health and Developmental Services in VA. I wanted to share a quick walkthrough of how I extracted the data from tables in a PDF using a Python module called PDFplumber. I also uploaded a video to Youtube if you prefer that.
-
Code to extract text from pdf to excel
I've been working with pdfplumber, which is built atop pdfminer.six. It allows one to break the page up into sections and extract text from them in turn, which may help keep columns separated better.
-
I need to parse unstructured tables from a pdf into a json, what can I do
You could try pdfplumber
-
Advanced PDF to Excel with documents and example code
I'm not sure if there is a way to reliably detect bold characters: https://github.com/jsvine/pdfplumber/issues/724
-
how do I automate extracting data from two pdfs and input into an excel sheet according to an order number
pdfplumber is also pretty good. It can help segment text a bit better than pdfminer can alone.
-
Extracting particular things from pdf program?
To handle machine generated one, a possible package is pdfplumber.
- Convert PDF to text for parsing
PyPDF2
Posts with mentions or reviews of PyPDF2.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-24.
- Yara scanning PDF files
- I need help install PyPDF2 library on my computer
-
How to convert SVGs containing text to a PDF?
I still haven't needed to do that part in Rust yet, unfortunately. My mother is still using the pypdf-based concatenator I wrote for her years ago.
-
Recommendations for parsing text from .pdf files
I did an extremely quick search and am linking this without knowing anything about it.
-
Learning programming from the beginning to extract data from PDFs?
Pretty much study Python until this Github repo'd Readme makes sense!: https://github.com/py-pdf/PyPDF2
- Is there a GUI for PyPDF2?
-
Any good tutorials for working with pdfs in Rust?
As other posters have said, if you're just generating PDFs, that's doable with minor library support. If you want to open existing PDFs and do anything non-trivial with them, you'll want a mature, powerful PDF parsing library. PDFKit, which is part of macOS is pretty amazing. If you need portability, something like Python's PyPDF2 is probably the best bet. Knowing the Rust community, though, we'll probably get a library at least as good in Rust in a surprisingly short amount of time.
-
PyPDF4 merger not merging pdf's - what am I doing wrong?
Why are you using PyPDF4 which seems to have no active maintainer and no documentation instead of PyPDF2 which has both?
-
Print View
one of many options
-
The Pdfalyzer is a tool for visualizing the inner tree structure of a PDF in large and colorful diagrams as well as scanning its internals for suspicious content
Feel free. I poked around the PyPDF2 code and it seems like reading signatures is something it supports via xfa_form property (GitHub issue where this was discussed; seems to have been closed v. recently) . would probably be a very simple PR provided you knew where to look for that property.
What are some alternatives?
When comparing pdfplumber and PyPDF2 you can also consider the following projects:
PDFMiner - Python PDF Parser (Not actively maintained). Check out pdfminer.six.
OCRmyPDF - OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched
ReportLab
pdfminer.six - Community maintained fork of pdfminer - we fathom PDF
WeasyPrint - The awesome document factory
py-pdf-parser - A Python tool to help extracting information from structured PDFs.
Camelot - A Python library to extract tabular data from PDFs
PyMuPDF - PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.
borb - borb is a library for reading, creating and manipulating PDF files in python.
textract - extract text from any document. no muss. no fuss.