# pdfmake: 7.2 out of 10

A strong pick. 6th of 9 in [PDF libraries](https://elestia.ai/opensource/pdf/index.md).

pdfmake is a mature, MIT-licensed library that builds PDFs from a declarative JSON document definition on top of PDFKit, in the browser and in Node.js. It is a solid choice for invoices and reports with tables. It only generates PDFs, though. It slows down on large tables, has no bundled TypeScript types, and needs care with URL access policies on servers.

**Best for:** Teams that want table-heavy reports or invoices from a declarative JSON layout, without hand-positioning content or running a headless browser.

## Scores

- **Overall: 7.2** (likely 6.1 to 8.2)
  - Claude Opus 5.5 (6.5): pdfmake is a good, actively maintained choice when you want declarative, table-heavy PDF generation without a headless browser. It is weaker on large-table speed, TypeScript experience and maintainer depth. Server use needs a careful security setup. React-pdf renderer suits React teams better, and PDFKit is better when you need low-level control. pdfmake stays a reasonable, but not default, pick for report and invoice generation.
  - GPT-6.2 Sol (7.9): For new reports and invoices with variable-length tables, pdfmake offers more automatic layout than PDFKit or jsPDF, with active releases and established downstream use. PDFKit is a stronger fit for precise drawing, and PDF.js is the choice for viewing existing PDFs. Concentrated release work and the need to configure server-side resource access keep the recommendation below a category-wide default.
- **Needed by many: 4.5** (likely 3.3 to 5.7)
  - Claude Opus 5.5 (4.5): Making PDFs is a common need, mainly for reports, invoices and exports in business apps. pdfmake covers only the generation part of the category's job and does not read or show PDFs. That makes it a clear but medium-sized niche.
  - GPT-6.2 Sol (4.4): Generating invoices, reports, and exports is a recurring need in business applications. Browser and Node.js support give pdfmake a broad audience within that job, while reading, editing, and viewing existing PDFs require other tools. The share of JavaScript projects that need generation from structured data is uncertain.
- **Helps a lot: 7.3** (likely 6.2 to 8.3)
  - Claude Opus 5.5 (6.5): Its declarative layout with automatic pagination, tables, headers and footers is the easiest way in this category to get structured documents without positioning by hand. Its limits are clear. Large tables are slow, right-to-left support is missing, types are not bundled, and styling is much less flexible than with HTML or React-pdf. AI agents write its JSON format well because it has years of examples.
  - GPT-6.2 Sol (8.0): Declarative tables and pagination save layout work, and 0.3.15 fixes missing content in oversized rows and adds clearer overflow errors. PDFKit and jsPDF were faster on a small Node.js invoice benchmark. The documented object format helps developers and coding agents, but older callback examples and separately maintained types make version matching important. Small benchmark fixtures and an open report of extra blank lines in 0.3.13 leave some uncertainty about complex layouts.
- **Holds up over time: 7.0** (likely 5.8 to 8.0)
  - Claude Opus 5.5 (6.5): Activity is strong, with 190 commits and 20 releases in the last year and a release the day before this review. It is built on PDFKit, which is also active. All recent releases come from one maintainer, liborm85, and no funding is visible, so the project depends on one person. It is still 0.x, and patch releases change default behaviour.
  - GPT-6.2 Sol (7.4): The project recorded 190 commits and 20 GitHub releases in a year, and a user-reported spacing bug was fixed in 15 days. Recent GitHub releases consistently came from one maintainer, even though npm lists four collaborators. The 0.3 migration required downstream code changes, and concentrated release work makes the two-year outlook less certain.
- **Used widely: 6.1** (likely 5.0 to 7.2)
  - Claude Opus 5.5 (6.0): About 22,000 GitHub repositories depend on it, on par with PDFKit and jsPDF and above React-pdf. Its 18.3M downloads in 4 weeks are the lowest of the major peers except pdfme. Its growth ratio of about 4.3 is close to the 4.1 median, so it is holding ground, not gaining. Some downloads come through DataTables and charting libraries rather than direct choice.
  - GPT-6.2 Sol (6.1): The collector found 22,251 dependent repositories, close to PDFKit and jsPDF, alongside 12,366 stars. Four-week installs rose from 4.29 million to 18.29 million, a 4.26× increase that only slightly beats the 4.1× catalog baseline and trails every listed peer. Downstream bundles, CDN use, and automated installs make the number of fresh choices hard to estimate, and the supplied social snapshot adds little signal.
- **Vouched for: 6.6** (likely 5.4 to 7.6)
  - Claude Opus 5.5 (5.5): Established products build on it, such as DataTables Buttons for PDF export and amCharts, which wrote an upgrade notice for its users. Independent comparisons regularly name it the pick for structured reports. It has no survey data and no recent benchmarks, and current developer discussion is thin.
  - GPT-6.2 Sol (7.6): DataTables relies on pdfmake for its PDF export button, and amCharts 5 ships the 0.3 line. Recent third-party comparisons favor it for reports with tables that span pages, and a developer reported better pagination after switching from Puppeteer. The benchmark fixtures were small, and the State of JavaScript library rankings omit pdfmake, leaving satisfaction and retention harder to judge.
- **Safe: 5.8** (likely 4.6 to 7.0)
  - Claude Opus 5.5 (5.5): Two high-severity advisories since October 2025, one for SSRF and one for redirect throttling, were fixed with new access-policy APIs. The SSRF flaw had been present since 0.3.0-beta.2, and a public proof of concept exists. The OpenSSF Scorecard is 4.2, with no code review, branch protection, security policy or pinned dependencies, and releases come from one person. It has 5 direct dependencies, including PDFKit and its font stack, and an MIT licence.
  - GPT-6.2 Sol (6.1): The two high-severity advisories in the bundle have patched versions, and 0.3.14 added per-document URL caching by default to address a newer vulnerability. The MIT package has five direct dependencies, and its release workflow uses GitHub Actions to publish with npm provenance. The 4.2 OpenSSF score reflects weak checks for code review, branch protection, and dependency pinning. Risk depends on how the application handles external resources, especially when a server accepts document definitions from untrusted users.

## Good

- A declarative document definition gives automatic pagination, tables, lists, headers, footers and custom fonts.
- The same code runs in the browser and in Node.js, with PDF/A and PDF/UA support in the 0.3 line.
- It is actively maintained, with 20 releases in the last year that fix many table and page-break bugs.
- It is widely embedded: DataTables, amCharts and over 22,000 GitHub repositories depend on it.

## Bad

- Large tables generate slowly, especially in the browser.
- TypeScript types are not bundled and come from DefinitelyTyped, and full right-to-left text support is still missing.
- Server use needs explicit URL and local file access policies after two high-severity advisories since late 2025.
- It is still at 0.x after 12 years, and recent patch releases changed default behaviour such as URL caching, overflow handling and SVG errors.

## The numbers

- Downloads, 4 weeks: 18M
- In a year: ×4.3
- GitHub stars: 12k
- Commits, 12 months: 190
- Last npm release: Nov 2026
- Advisories, 24 months: 2
- Licence: MIT
- GitHub: https://github.com/bpampuch/pdfmake
- npm: https://www.npmjs.com/package/pdfmake

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.
