pikepdf
PyPDF2
Our great sponsors
pikepdf | PyPDF2 | |
---|---|---|
4 | 30 | |
2,019 | 7,359 | |
1.5% | 3.6% | |
9.5 | 9.5 | |
3 days ago | 1 day ago | |
Python | Python | |
Mozilla Public License 2.0 | BSD 3-Clause |
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.
pikepdf
-
This Week in Python
pikepdf β A Python library for reading and writing PDF, powered by qpdf
-
Recovering redacted information from pixelated videos
Not off the shelf but here are some tools. I have no experience with them.
Wolf binarization - I think it makes the text more clear before OCR.
https://github.com/chriswolfvision/local_adaptive_binarizati...
This thing OCRs the pdf using Tesseract OCR
https://github.com/ocrmypdf/OCRmyPDF/
Two other pdf tools
-
Show HN: Pystitcher β A Declarative Alternative to Pdftk
i recently transitioned a large PDF processing pipeline[1] away from PyPDF3 to use the pikepdf[2] library instead. pikepdf is based on the C++ `qpdf` library, and this switch has cut the necessary special-case manual checking + error handling in half compared to pypdf for these sorts of tasks.
[1]: i'm helping out with the CV Open Access archive, https://openaccess.thecvf.com/menu. broadly, our pipeline needs to ingest tons of author-provided PDFs of varying quality and output a canonical PDF with corrected page numbers, proper metadata, and a banner stamped on the first page. it's a lot of work, and it's not uncommon for pypdf to simply fail for slightly invalid input or give garbled results. this isn't optimal since we can't review 2,000 papers per conference release lol. pypdf has been nice, but pikepdf has handled everything i've thrown at it.
- a collection of pdf-files (copy of a book ) in disorder: solfing wiht pikepdf
PyPDF2
- 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?
fpdf2 - Simple PDF generation for Python
PDFMiner - Python PDF Parser (Not actively maintained). Check out pdfminer.six.
borb - borb is a library for reading, creating and manipulating PDF files in python.
ReportLab
PyPDF2 - A utility to read and write PDFs with Python [Moved to: https://github.com/py-pdf/PyPDF2]
pdfplumber - Plumb a PDF for detailed information about each char, rectangle, line, et cetera βΒ and easily extract text and tables.
qpdf - QPDF: A content-preserving PDF document transformer
WeasyPrint - The awesome document factory
malicious-pdf - π Generate a bunch of malicious pdf files with phone-home functionality. Can be used with Burp Collaborator or Interact.sh
Camelot - A Python library to extract tabular data from PDFs
python-anvil - Python library and CLI for the Anvil API