eKoopmans/html2pdf.js
Client-side HTML-to-PDF rendering using pure JS. observed · 2026-08-28
Health v2 · maintenance only
87/100
- Activity 99
- Release rhythm 65
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 4.0
- age_days: 3445
- days_rel: 234
- days_push: 7
- n_releases_24m: 9
Adoption not part of the score
4913 stars · 1670 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
html2pdf.js is a JavaScript library that converts webpages or DOM elements into printable PDF files entirely in the browser, built on html2canvas and jsPDF. It requires no server-side processing and supports page-break control, image quality settings, and a worker-style API.
Use cases
- generate pdf from html in the browser
- convert a webpage to pdf client-side without a server
- export an invoice or report as pdf from javascript
- add a download-as-pdf button to my web app
- capture a dom element as a pdf screenshot
- print html content to pdf with page breaks
When to choose
- you need PDF generation purely in the browser with no backend
- you want simple page-break and image-quality configuration
- you want a lightweight drop-in script via CDN or npm
When to avoid
- you need to run PDF generation in Node.js (it is browser-only)
- you need pixel-perfect, text-selectable PDFs rather than canvas-rendered images
- you need server-side batch conversion of HTML documents
Facets
library · maturity active
pdf image-processing pdf web-development frontend browser html-to-pdf client-side html2canvas jspdf pdf-generation screenshot javascript nodejs
2 sources
- readme: https://github.com/eKoopmans/html2pdf.js · fetched 2026-08-28 · 6450f717b8cb
- registry_npm: https://registry.npmjs.org/html2pdf.js · fetched 2026-08-29 · 2bf716918a43
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| eKoopmans/html2pdf.js | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="eKoopmans/html2pdf.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem