pdfjs
pdf-lib
Our great sponsors
pdfjs | pdf-lib | |
---|---|---|
2 | 23 | |
760 | 6,238 | |
- | - | |
6.9 | 0.0 | |
4 months ago | 3 months ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
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.
pdfjs
-
Is node the right choice for HTML to PDF conversion?
pdfjs was pretty good when I used it https://github.com/rkusa/pdfjs
-
Astro JS non-HTML Routes: File & Resource API
We use the pdfjs package here to generate the PDF for us. It just has dummy content in our case. You might generate it from scratch or compose it from other PDFs in your real-world app. See more on pdfjs usage in the docs. The most important part is the output we return in line 12. For a static site, aim to return an object with a body field which is a string. For SSR you can return a Response object instead and even stream HTML. We use binary encoding here which makes sure Astro encodes PDFs including images (for example) correctly — thanks to @altano for tip here.
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.
[0] https://github.com/Hopding/pdf-lib
-
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.
What are some alternatives?
react-pdf - 📄 Create PDF files using React
PDFKit - A JavaScript PDF generation library for Node and the browser
pdfmake - Client/server side PDF printing in pure JavaScript
puppeteer - Node.js API for Chrome
chrome-headless-render-pdf
PyPDF4 - A utility to read and write PDFs with Python
satori - Enlightened library to convert HTML and CSS to SVG
qpdf - QPDF: A content-preserving PDF document transformer
node-anvil - Node API Client for Anvil
PDF.js - PDF Reader in JavaScript
svg2pdf.js - A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
markdown-preview-enhanced - One of the 'BEST' markdown preview extensions for Atom editor!