pikepdf
fpdf2
Our great sponsors
pikepdf | fpdf2 | |
---|---|---|
4 | 23 | |
2,019 | 930 | |
1.5% | 4.5% | |
9.5 | 9.3 | |
3 days ago | 3 days ago | |
Python | Python | |
Mozilla Public License 2.0 | GNU Lesser General Public License v3.0 only |
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
fpdf2
-
Pylint strict base configuration
I recently used this approach on fpdf2: PR #780 Hardening Pylint config
- New fpdf2 release - 2.7.4 - Images can now be embedded as CMYK - Docs for using Pygal & FastAPI - Various bugfixes
- Pdfkit vs weasyprint ?
- New fpdf2 release - 2.7.0 - New methods table() and set_fallback_fonts() - keep_aspect_ratio - ICC Profiles
-
Generating PDF files via FastAPI and sending the file to the user's email. (Currently using PyPDF2)
If you want to contribute to fpdf2, I would welcome a Pull Request to add an example of using it with FastAPI, in this documentation Markdown page: https://github.com/PyFPDF/fpdf2/blob/master/docs/UsageInWebAPI.md 😉
- New fpdf2 release - 2.6.1 - PDF encryption - skewing - markdown hyperlinks - Python 3.11
- New fpdf2 release - 2.6.0 - HTMLMixin not needed anymore - more HTML tags supported - demonstration Jupyter notebook
- looking for an "low dependency" or pythonesque way to generate PDF's
- New fpdf2 release - v2.5.7 - Support for subscript & superscript - set_page_background - embed_file - set_char_spacing
- New fpdf2 release - v2.5.6 - PDF document signing - greek tutorial - better SVG image parsing
What are some alternatives?
borb - borb is a library for reading, creating and manipulating PDF files in python.
PyPDF2 - A utility to read and write PDFs with Python [Moved to: https://github.com/py-pdf/PyPDF2]
rst2pdf - Use a text editor. Make a PDF.
qpdf - QPDF: A content-preserving PDF document transformer
undying-dusk - The very first PDF video game
PyPDF2 - A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
yellowbrick - Visual analysis and diagnostic tools to facilitate machine learning model selection.
malicious-pdf - 💀 Generate a bunch of malicious pdf files with phone-home functionality. Can be used with Burp Collaborator or Interact.sh
oso - Oso is a batteries-included framework for building authorization in your application.
python-anvil - Python library and CLI for the Anvil API