foliojs/pdfkit
A JavaScript PDF generation library for Node and the browser observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 59.0
- age_days: 5532
- days_rel: 10
- days_push: 7
- n_releases_24m: 11
Adoption not part of the score
10698 stars · 1221 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
PDFKit is a JavaScript library for programmatically generating PDF documents in Node.js and the browser. It offers a chainable, canvas-like API for text, vector graphics, images, fonts, annotations, forms, encryption, and accessibility features.
Use cases
- generate pdf invoices from node.js
- create multi-page printable reports in javascript
- embed custom fonts in a pdf
- draw vector graphics and charts into a pdf
- generate pdfs in the browser for download
- add links, bookmarks, and annotations to pdfs
- create fillable pdf forms (acroforms)
- produce accessible tagged pdf/ua documents
When to choose
- you need to generate PDFs programmatically in Node or the browser with fine-grained control
- you want a canvas-like API for vector drawing plus text layout, font embedding, and images
- you need PDF features like encryption, AcroForms, outlines, or Tagged PDF accessibility
When to avoid
- you just need to convert existing HTML pages to PDF (use a headless browser or HTML-to-PDF tool instead)
- you need to parse, edit, or extract content from existing PDFs rather than create new ones
- you want high-level automatic document layout out of the box - table and layout APIs are still limited
Facets
library · maturity active
pdf graphics templating image-processing pdf web-development developer-tools files browser cross-platform pdf-generation document-generation vector-graphics font-embedding node-streams printable-documents nodejs javascript
10 sources
- readme: https://github.com/foliojs/pdfkit · fetched 2026-08-28 · 1809b63ecb22
- homepage: http://pdfkit.org/ · fetched 2026-08-29 · 00cf847ee96f
- site_page: http://pdfkit.org/docs/getting_started.html · fetched 2026-08-29 · 009586b01eba
- site_page: http://pdfkit.org/docs/paper_sizes.html · fetched 2026-08-29 · 5a6698397ac9
- site_page: http://pdfkit.org/docs/vector.html · fetched 2026-08-29 · a1a811a637da
- site_page: http://pdfkit.org/docs/text.html · fetched 2026-08-29 · e15b4d07b79d
- site_page: http://pdfkit.org/docs/images.html · fetched 2026-08-29 · 91108c8072fd
- site_page: http://pdfkit.org/docs/outline.html · fetched 2026-08-29 · 214eed50d102
- site_page: http://pdfkit.org/docs/annotations.html · fetched 2026-08-29 · 54834e772fc9
- registry_npm: https://registry.npmjs.org/pdfkit · fetched 2026-08-29 · fcdcae62c912
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| foliojs/pdfkit | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem