JavaScript PDF and document libraries
Find packages for generating or rendering PDF documents in JavaScript, including jsPDF, html2pdf.js, and PDF.js.
3 indexed packages. Inspect package specifications and compare alternatives according to their actual role in your application.
Packages in this category
- PDF.js: Generic build of Mozilla's PDF.js library.
- jsPDF: PDF Document creation from JavaScript
- html2pdf.js: Client-side HTML-to-PDF rendering using pure JS
What to compare
- Separate document generation from PDF rendering and viewing.
- Check documented browser/server support and requirements for workers, fonts, or external assets.
- Review layout, pagination, image handling, and output-format requirements in official examples.
- Interpret bundle measurements with all required assets and companion modules in mind.
Example package specifications
pdfjs-dist
| Latest version | 6.4.299 |
|---|---|
| Runtime dependencies | 0 |
| Bundled types | Bundled declarations |
| Gzip measurement | 130.76 KiB |
Evidence and freshness
- https://registry.npmjs.org/pdfjs-dist/6.4.299 — retrieved 2026-10-29T01:43:20.633Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/systems/npm/packages/pdfjs-dist/versions/6.4.299:dependencies — retrieved 2026-10-28T23:30:39.359Z
- https://bundlephobia.com/api/size?package=pdfjs-dist%406.4.299 — retrieved 2026-10-28T23:30:39.543Z
- https://api.deps.dev/v3/systems/npm/packages/pdfjs-dist/versions/6.4.299 — retrieved 2026-10-29T01:43:20.878Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/projects/github.com%2Fmozilla%2Fpdf.js — retrieved 2026-10-28T23:01:37.168Z (stale snapshot; refresh pending)
jspdf
| Latest version | 4.2.1 |
|---|---|
| Runtime dependencies | 3 |
| Bundled types | Bundled declarations |
| Gzip measurement | 126.73 KiB |
Evidence and freshness
- https://registry.npmjs.org/jspdf/4.2.1 — retrieved 2026-10-29T05:10:21.283Z
- https://bundlephobia.com/api/size?package=jspdf%404.2.1 — retrieved 2026-10-28T23:30:43.003Z
- https://api.deps.dev/v3/systems/npm/packages/jspdf/versions/4.2.1 — retrieved 2026-10-29T05:10:21.446Z
- https://api.deps.dev/v3/systems/npm/packages/jspdf/versions/4.2.1:dependencies — retrieved 2026-10-28T23:30:42.929Z
- https://api.deps.dev/v3/projects/github.com%2Fparallax%2FjsPDF — retrieved 2026-10-28T23:01:38.355Z (stale snapshot; refresh pending)