# jsPDF: 6.4 out of 10

Reasonable, with limits. 8th of 9 in [PDF libraries](https://elestia.ai/opensource/pdf/index.md).

jsPDF is the oldest and most widely installed library for making PDFs in the browser. It has an imperative, canvas-like API with MIT licence and bundled types. It is still a reasonable pick for simple client-side documents. For structured, multi-page reports, pdfmake or React-pdf now do the job better, and jsPDF has had a steady run of injection advisories.

**Best for:** Teams that need quick, simple PDFs drawn in the browser, or a PDF capture of on-screen HTML, without a server.

## Scores

- **Overall: 6.4** (likely 5.3 to 7.4)
  - Claude Opus 5.5 (5.5): jsPDF is still a workable, well-known choice for simple client-side PDFs, with huge adoption and an API agents know well. Its lack of layout, its weak HTML conversion, slowing development and frequent injection advisories put it behind pdfmake and React-pdf for structured documents. pdf-lib's stalled maintenance does not make jsPDF the better editing tool, because jsPDF cannot edit at all.
  - GPT-6.2 Sol (7.2): Pick jsPDF for new browser projects that generate PDFs with predictable layouts and need direct control over placement. Choose pdfmake for reports that need automatic layout across pages, or PDF.js for viewing existing files. Established integrations and same-day security fixes support a strong recommendation for browser exports. The release gap and unresolved layout bugs keep the recommendation narrower.
- **Needed by many: 5.3** (likely 4.0 to 6.4)
  - Claude Opus 5.5 (6.0): Many web apps need to make invoices, receipts or reports as PDF, and jsPDF serves both browser and Node. Its approach is client-side generation only. It cannot read or show PDFs, which is a large part of this category's job, so it covers only part of the category.
  - GPT-6.2 Sol (4.6): PDF export is a recurring need in business apps, from invoices to reports and data grids. jsPDF serves that need across frameworks in browsers and Node.js, and its scope is creating new documents. PDF.js serves viewing and pdf-lib serves editing existing files. The integrations show where jsPDF fits, but give little basis for estimating how many JavaScript developers need it.
- **Helps a lot: 6.2** (likely 4.9 to 7.5)
  - Claude Opus 5.5 (5.0): The API is easy for simple documents and has types, custom fonts, images, AcroForms and plugins. It has no reflow or automatic page breaks. The HTML path rasterizes text through html2canvas and has many open rendering complaints. pdfmake and React-pdf handle structured, multi-page documents clearly better, and pdf-lib handles editing.
  - GPT-6.2 Sol (7.4): The drawing API is easy to start with, and the examples and bundled types give coding agents a clear path for basic exports. jsPDF was fast in an independent Node.js invoice test, which covered one short layout. A user measured text-centering errors in 4.2.1, and a pending fix documents lost lines in HTML pagination. pdfmake handles flowing reports with less layout code, and published evidence is thin on coding-agent accuracy for complex documents.
- **Holds up over time: 5.5** (likely 4.1 to 6.9)
  - Claude Opus 5.5 (5.0): The repository is active enough to ship security fixes: 4 releases in the past year, all driven by advisories, and the 4.0 major had only one breaking change. Only 29 commits landed in the past year, and nothing has shipped since March 2026. Feature work has mostly stopped, and the project depends on a small group of maintainers. PDFKit, pdfmake and PDF.js are far more active.
  - GPT-6.2 Sol (5.9): The repo was pushed to in November and landed 29 commits in the past year, but all four releases came between January and March. PDFKit and pdfmake have more recent releases and substantially more commits. Version 4 changed how Node.js apps load local files, and a detailed font bug report was closed by the stale bot. The project names yWorks as a co-maintainer, but one person published all four releases and ongoing funding is unclear.
- **Used widely: 7.3** (likely 6.3 to 8.4)
  - Claude Opus 5.5 (8.0): jsPDF has about 22,000 dependent repositories, similar to PDFKit and pdfmake, and about 87M downloads in 4 weeks. Its download ratio of about 5.6 beats the 4.1 median, so it still gains ground. Most peers grew faster, though: pdf-lib, PDFKit, PDF.js and React-pdf all rose 8 to 15 times. Part of the volume comes from transitive installs such as html2pdf.js.
  - GPT-6.2 Sol (6.6): ecosyste.ms found about 22,000 dependent repositories, close to PDFKit and pdfmake, and GitHub records about 31,000 stars. Downloads rose from 15.6 million to 86.6 million over the same four weeks a year apart. That 5.6× gain beat the 4.1× catalog median, while PDFKit and React-pdf renderer grew faster. Automated installs and dependencies such as html2pdf.js make it hard to tell how much of that growth came from new projects choosing jsPDF directly.
- **Vouched for: 6.1** (likely 4.7 to 7.4)
  - Claude Opus 5.5 (5.0): Independent comparisons still recommend jsPDF for quick browser PDFs, and it has a wide base of dependents. No survey data or named production users showed up. Current write-ups mostly steer structured or editing work to pdfmake, pdf-lib or React-pdf, and an HN Show post framed a smaller alternative against jsPDF's size.
  - GPT-6.2 Sol (7.1): DevExpress uses jsPDF for DevExtreme exports, and HCL BigFix lists it in its Patch V11 product notices. html2pdf.js also relies on it, and an independent test found it fast for a simple invoice. The product notices cover an older version, and the benchmark and available survey evidence leave more demanding workloads and developer satisfaction uncertain.
- **Safe: 5.7** (likely 4.3 to 7.1)
  - Claude Opus 5.5 (5.0): The library has 15 advisories, 12 of them in the past 24 months. They include a critical path traversal in the Node build, a critical HTML injection, and several AcroForm and addJS injections that allow JavaScript to run in the PDF. All were fixed, usually with releases on the same day as the advisory, and the licence is MIT with only 3 direct dependencies. Still, the steady stream shows a large attack surface whenever untrusted input reaches its APIs, and there is no Scorecard data.
  - GPT-6.2 Sol (6.3): The 4.x releases addressed the recent serious advisories by public disclosure, including the critical HTML injection fixed in 4.2.1. The MIT package declares three required dependencies and four optional ones. GitHub Actions publishes to npm using a token, and one person triggered the last four publishes. The lack of an OpenSSF Scorecard result and uncertainty about who else can publish widen the range.

## Good

- The simple drawing API (text, lines, images, fonts) is easy to learn, and AI agents write correct code for it because examples are everywhere.
- It runs fully in the browser with no server, and also runs in Node.
- Its plugin ecosystem, such as jspdf-autotable and html2pdf.js, covers tables and HTML capture.
- It is MIT-licensed with bundled TypeScript types and only 3 direct dependencies.

## Bad

- There is no layout engine and no automatic page flow, so multi-page reports need manual positioning.
- html() relies on html2canvas and often gives rasterized, unsearchable or misaligned output.
- Twelve advisories in 24 months, several high or critical injection flaws, show a risky surface whenever untrusted input reaches it.
- Development is slow: 29 commits in the past year, and the last release, a security fix, came out in March 2026.

## The numbers

- Downloads, 4 weeks: 87M
- In a year: ×5.6
- GitHub stars: 31k
- Commits, 12 months: 29
- Last npm release: Mar 2026
- Advisories, 24 months: 12
- Licence: MIT
- GitHub: https://github.com/parallax/jsPDF
- npm: https://www.npmjs.com/package/jspdf

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
