pdf-lib
qpdf
Our great sponsors
pdf-lib | qpdf | |
---|---|---|
23 | 18 | |
6,158 | 2,958 | |
- | 3.4% | |
0.0 | 9.6 | |
2 months ago | 5 days ago | |
TypeScript | C++ | |
MIT License | Apache License 2.0 |
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.
- 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
I stand on the shoulders of giants, namely a combination of PDF.js and PDF-lib.
Sure! You can build your own PDF editor with a combination of PDF.js and PDF-lib
The generation part is done using 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?
-
I made an online PDF editor that respects your privacy
PDF.js for rendering the PDF in the browser and pdf-lib for generating the final PDF!
qpdf
-
🔍Underrated Open Source Projects You Should Know About 🧠
QPDF is a CLI tool that performs content-preserving transformations on PDF files. We have another tool for managing files!
- I wanna design UI/Ux for open source!
-
qpdf.el: A transient Emacs wrapper for qpdf
Hi, this is my first Emacs package! It provides a transient wrapper for the qpdf command-line tool aimed especially at users of pdf-tools or at least DocView. With it one can, for example, remove/reorder/split/rotate pages of a pdf file, merge pdf files, remove annotations, and apply a range of transformations to a pdf file. See the qpdf documentation.
-
The New Ghostscript PDF Interpreter
There are some here, as test files in the qpdf library: https://github.com/qpdf/qpdf/tree/main/qpdf/qtest/qpdf
(I wrote a low-level PDF parser and ran it over the PDF files that happened to be present on my laptop—just regular ones—and ran into some files that (some) PDF viewers open but even qpdf doesn't. I say "even" because qpdf is really good IMO.)
-
Ask HN: Why is the PDF format so inaccessible?
If you're comfortable handling the (typo)graphical aspects of the PDF yourself and have the ability to consume a C++ library, I've had good experiences using the Apache-licensed qpdf[1] library to handle the low-level structural aspects of the PDF standard. It's particularly convenient when your application requires structure-preserving integration of existing PDF content.
Simple example applications, each completed in 2–3 days, both in C#, using C++/CLI to integrate libqpdf:
1. Overlaying fixed-format text on pre-existing blank PDF form pages, ensuring the content of each distinct form page is embedded exactly once, and that all necessary assets (fonts, images, etc.) from the blank form PDF pages are included in the output PDF.
2. Losslessly combining a sequence of PDF, TIFF, and JPEG images into a single PDF with bookmarks pointing to the first page of each source file and existing image compression maintained where possible. In this application, only the source TIFFs were anything other than arbitrary (i.e., the TIFFs were more-or-less baseline images coming from a small number of scanning systems, but the JPEGs and PDFs came from all sorts of different applications).
-
Quick macOS terminal command to batch remove user password from PDF
I was looking for a way on macOS to batch remove the user password from a bunch of PDF files that had the same password. I found the easiest way was to use qpdf with the following command:
-
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
-
paperless-ng error raspberry pi4
sudo apt install libjpeg-dev curl -OL https://github.com/qpdf/qpdf/releases/download/release-qpdf-10.3.2/qpdf-10.3.2.tar.gz tar -xf qpdf-10.3.2.tar.gz cd ./qpdf-10.3.2 ./configure; make; sudo make install sudo ldconfig pip3 install --user pikepdf # --> This should work now!
-
PostScript Language Reference [pdf]
I think you're describing stream compression, which appears to be utterly ubiquitous to the point that the knobs to turn it off have either technically bitrotted or faded well below our collective awareness threshold.
After poking around a bit I noticed ps2pdf supports a "CompressPages" option (https://web.mit.edu/ghostscript/www/Ps2pdf.htm), which might be what you're looking for.
Alternatively you might use something like `qpdf --stream-data=uncompress input.pdf output.pdf`.
qpdf (info: http://qpdf.sourceforge.net/, https://github.com/qpdf/qpdf) seems to be a good recommendation to add to the "mentally index the entire man page" list for anyone interested in PDF in general.
-
Extract Data from PDF
UPDATE: We tried repairing the pdf in question and lo and behold, we got a result. As a tool for the repair we used qpdf (https://github.com/qpdf/qpdf/releases), after that the ledongthuc/pdf library had no hassle reading the data.
What are some alternatives?
PDFKit - A JavaScript PDF generation library for Node and the browser
pdfcpu - A PDF processor written in Go.
puppeteer - Node.js API for Chrome
PyPDF4 - A utility to read and write PDFs with Python
pikepdf - A Python library for reading and writing PDF, powered by QPDF
PDF.js - PDF Reader in JavaScript
markdown-preview-enhanced - One of the 'BEST' markdown preview extensions for Atom editor!
OpenPDF - OpenPDF is a free Java library for creating and editing PDF files, with a LGPL and MPL open source license. OpenPDF is based on a fork of iText. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.
labelmake - labelmake has moved and now available at pdfme / https://github.com/pdfme/pdfme
docx - Easily generate and modify .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
react-pdf - 📄 Create PDF files using React
svg2pdf.js - A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts