pdf-lib
PyPDF4
Our great sponsors
pdf-lib | PyPDF4 | |
---|---|---|
23 | 5 | |
6,220 | 321 | |
- | - | |
0.0 | 0.0 | |
3 months ago | over 2 years ago | |
TypeScript | Python | |
MIT License | GNU General Public License v3.0 or later |
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.
pdf-lib
-
Launch HN: Onedoc (YC W24) – A better way to create PDFs
I'm facing that same pain point of programmatic PDF filling. I noodled around in the PDF format and learned it's a bit difficult to deal with fonts and formatting. But I think this client-side library works well enough, as a start: https://pdf-lib.js.org/#:~:text=a%20single%20document.-,Fill...
I've also heard of one paid API that I forgot but seemed to work well, and this related service https://www.jotform.com/, and I also considered porting some server-side libraries to WASM. One day I'll collect all the libraries and findings in a blog post.
Are you looking to programmatically fill any PDF form by detecting the fields? Or are you filling one known PDF template?
-
Show HN: PrivatePDF – minimal PDF editor that runs in the browser
Thanks! For PDF form filling, I use the APIs that pdf-lib [0] exposes. That includes text fields, checkboxes, radio buttons, dropdowns and options lists. Give it a try and let me know if you find a type of form field that's missing.
-
Thinking of throwing in the towel and hiring help - small website business
I do not know if some plugin exists, but maybe you have to take a look at https://pdf-lib.js.org/
- Does no one use PDF files anymore?? In need of a PDF generator package...
-
Is node the right choice for HTML to PDF conversion?
PDFmake or pdf-lib would be the way to go in my opinion.
-
I made a free PDF editor that works in your browser
Sure! You can build your own PDF editor with a combination of PDF.js and PDF-lib
-
I built a wrapper to easily embed my PDF editor (SimplePDF) in any React app!
I stand on the shoulders of giants, namely PDF-lib, PDF-js and React-beautiful-DND – everything else is pretty much custom code.
- PDF editing - client side with canvas or on server?
-
How can I use PDF-Lib in Cloudflare Workers?
How one can use a library such as PDF-Lib (npm, website) that:
-
PDF Library
I built my side-project https://pdfvise.com/ using https://pdf-lib.js.org/ for pdf manipulations.
PyPDF4
-
How do I transform many pdfs into text?
There's also a PyPDF4 ... https://github.com/claird/PyPDF4 ...
-
Move links in .pdf to spreadsheet, on password protected .pdf
I looked through PyPDF4 (https://github.com/claird/PyPDF4) and tried to decode a pdf on osx but found that PyPDF4 supports decryption for algorithms 1 or 2 however OSX PDF encryption only writes encrypted pdfs with algorithm 4. So basically, I don't have a tool readily available to create a starting encrypted pdf that could be decrypted by PyPDF4.
-
Minimalistic writing app like focuswriter with pdf export
I'm not a python expert, but I've heard good things about PyQT. You might want to check it out. You can then use PyPDF to read/write PDF files.
-
Markdown to PDF: missing pieces from various approaches, and beyond HTML
PyPDF2 - Python (there seems to be up to PyPDF4, now)
-
Python PDF Generation from HTML with WeasyPrint
While there are numerous ways to handle PDF documents with Python, I find generating or editing HTML far easier and more reliable than trying to figure out the intricacies of the PDF format. Sure, there is the venerable ReportLab, and if HTML is not your cup of tea, I encourage you to look into that option. There is also PyPDF2. Or maybe PyPDF3? No, perhaps PyPDF4! Hmmm... see the problem? My best guess is PyPDF3, for what that is worth.
What are some alternatives?
PDFKit - A JavaScript PDF generation library for Node and the browser
PyPDF2 - A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
puppeteer - Node.js API for Chrome
pyweasyprintdemo
qpdf - QPDF: A content-preserving PDF document transformer
markdown-preview-enhanced - One of the 'BEST' markdown preview extensions for Atom editor!
PDF.js - PDF Reader in JavaScript
labelmake - labelmake has moved and now available at pdfme / https://github.com/pdfme/pdfme
sciter-pdf - Sciter binding for libharu pdf library.