Elestia Open Source Ratings
7.3

React-pdf renderer

A strong pick. 5th of 9 PDF libraries.

@react-pdf/renderer builds PDF files from React components, with a flexbox layout engine that runs in the browser or on the server. For React teams that need invoices, reports or other structured documents without running a headless browser, it is a strong pick today. It is limited to a subset of CSS, can be slow on large documents in the browser, and depends mostly on one main maintainer.

Best for: React and Next.js teams that want to write invoices, reports and other structured PDFs as JSX, on the server or in the browser, without headless Chrome.

WebsiteGitHubnpm

Scores

Overall7.3

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

For React projects that generate PDFs, it is clearly the best fit. It is well maintained and growing faster than most of the category. Its CSS subset, browser performance limits and reliance on one main maintainer keep it below the top band. Outside React, PDFKit or pdfmake do the same generation job more broadly. Puppeteer is better for pixel-exact HTML.

GPT-6.2 Sol: 7.5, likely 6.3 to 8.5

It's a strong pick for a new React project that needs branded invoices, receipts, or reports from reusable templates. Active releases and production use support that choice, while current font regressions leave some uncertainty for multilingual documents and long-running servers. Pdfmake has the stronger case for table-heavy reports, with built-in tables and automatic header repetition.

Needed by many4.1

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Making PDFs is a common but occasional need, mostly for invoices and reports in business apps. This project serves only developers who use React, and it only generates PDFs. It does not read or display them, so it covers a slice of the category's job.

GPT-6.2 Sol: 4.1, likely 3.0 to 5.3

PDF generation covers recurring needs such as invoicing and reporting, and React gives this approach a sizable audience. The renderer creates new documents and previews its own output. Reading or editing existing PDFs calls for another library. The survey measures React use, so the share of teams that need React-based PDF generation remains uncertain.

Helps a lot7.3

How well does it do the job for those who need it?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It is the most natural way for React developers to build structured PDFs. It has a real layout engine, page breaks, custom fonts, types, and now PDF/A output. Clear limits keep it out of the top band: only part of CSS is supported, there are flex quirks, browser performance on large documents is poor, and it cannot edit or read existing PDFs. Independent production reports are positive for invoices.

GPT-6.2 Sol: 7.5, likely 6.3 to 8.5

Version 4.9.0 combines typed JSX, flexible page layout, and PDF/A output, and coding agents can search the official docs. Users report rendering defects with some custom fonts, and a large-table benchmark favored pdfmake. That benchmark predates the opt-in pagination engine, so current performance on long documents remains uncertain.

Holds up over time6.8

Will it still be a good choice in two years?

Claude Opus 5.5: 6.5, likely 5.0 to 7.5

The project is active: 205 commits and 89 package releases in the last year, and npm version 4.9.0 came out in August 2026. It has supported React 19 since 4.1. The work rests mostly on the original author, and the backlog is sizeable at 300 open issues and 76 open pull requests. The last renderer release is three months old, which is a modest pace.

  • github commitsLastYear: 205 commits in the last year
  • github openIssues / openPullRequests: 300 open issues and 76 open pull requests
  • npm latestPublishedAt: Latest renderer release on 2026-08-27
  • react-pdf.org/compatibility: Supports React 16.8 to 19
  • diegomura/react-pdf maintainership: Mostly one lead maintainer, funded only by small donations

GPT-6.2 Sol: 7.1, likely 5.9 to 8.2

The repository had 205 commits in the past year, and the renderer itself had 12 published versions, with the latest in late August. Calix contributes monthly, and one maintainer leads most recent feature releases. A sizeable backlog and unresolved upgrade regressions make future fix times hard to predict.

  • github commitsLastYear, openIssues, openPullRequests: 205 repository-wide commits, 300 open issues, and 76 open pull requests.
  • npm versionsLastYear, latestPublishedAt: 12 renderer versions in a year, with the latest published August 27, 2026.
  • react-pdf.org/changelog: Recent feature releases are concentrated around the lead maintainer.
  • opencollective.com/react-pdf: Recent Calix contributions are $200 monthly, and the collective lists one admin.
  • github.com/diegomura/react-pdf/issues/3551: A module resolution regression reported against 4.7 and later remains open.
Used widely6.2

How many use it, and is that growing?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

Downloads grew from 4.7M to 38.2M per 4 weeks, a ratio of about 8.1. That is well above the 4.1 median, so the project is gaining ground. It has 5,028 dependent repositories, fewer than PDFKit, jsPDF or pdfmake (about 22–23k each) but above pdf-lib. With 16.9k stars, it points to tens of thousands of projects choosing it, and the number is growing.

  • npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 38.2M against 4.7M a year before, a ratio of about 8.1 against the 4.1 median
  • dependents repos: 5,028 repositories, below the generation peers at about 22k
  • github stars: 16.9k stars

GPT-6.2 Sol: 5.8, likely 4.5 to 7.1

Four-week installs rose from 4.73 million to 38.2 million, about 8.1× against the catalog median of 4.1×. That beats growth at jsPDF and pdfmake, while PDFKit and pdf-lib grew faster. The crawler found about 5,000 dependent repositories, ahead of pdf-lib and well behind PDFKit, jsPDF, and pdfmake. Automated installs and partial repository coverage leave the number of teams choosing it uncertain.

  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Installs grew at about twice the catalog's median ratio.
  • dependents, peers: 5,028 indexed repositories and 202 indexed npm packages depend on it.
  • github stars, bluesky posts: The repository has 16,863 stars and four recent Bluesky links.
Vouched for6.1

Who stands behind it being good?

Claude Opus 5.5: 5.5, likely 4.0 to 7.0

Independent production write-ups and comparison guides recommend it as the default for React-based PDF generation. Libraries such as react-pdf-charts build on it. There is little visible public endorsement from large companies, and it has no Hacker News stories and little Bluesky discussion. Many comparison pages come from PDF SDK vendors, which lowers their weight.

GPT-6.2 Sol: 6.7, likely 5.5 to 7.8

Open Collective switched its PDF service to the renderer and now pins 4.9.0. Midday uses it for invoices and receipts, and Calix provides recurring financial backing. Those uses support its fit for business documents, while mixed independent performance results and scarce renderer-specific survey data limit confidence across workloads.

Safe6.4

How safe is it to depend on?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

It has no advisories ever and uses the MIT licence. It pulls in 13 direct dependencies, mostly its own @react-pdf packages. The OpenSSF Scorecard is weak at 4.2: there is no code review, no security policy, unpinned dependencies and broad token permissions. It processes trusted input in most uses, so the attack surface is modest.

  • advisories total: 0 advisories
  • scorecard score: 4.2, with zero scores on Code-Review, Security-Policy, Pinned-Dependencies and Token-Permissions
  • npm dependencies: 13 direct dependencies
  • npm license: MIT

GPT-6.2 Sol: 6.3, likely 4.8 to 7.8

The package uses the permissive MIT license and has zero recorded OSV advisories. GitHub Actions runs tests before release and is configured for npm trusted publishing, while OpenSSF scores the repository 4.2 out of 10, with zeros for code review, token permissions, dependency pinning, and security policy. The renderer has 13 direct dependencies, and current publisher access could not be verified. ReversingLabs reports a removed beta with an unexplained cause and found no malware or tampering in 4.9.0.

Good

  • You write layouts as React components with flexbox styling, so React developers learn it quickly.
  • It is light next to Puppeteer: about 2 MB added to a serverless function, and invoices render in under half a second.
  • It ships with TypeScript types, supports React 16 to 19, and 4.9 added PDF/A output.
  • It has no known advisories and uses the MIT licence.

Bad

  • It supports only part of CSS: there is no grid and no pseudo-selectors, and nested flex sometimes sizes wrongly.
  • Generation runs on the main thread in the browser, so long documents freeze the tab unless you move the work to a Web Worker.
  • Fonts for non-Latin scripts must be registered by hand, and registering them inside components causes races under parallel requests.
  • One main maintainer carries most of the work, with 300 open issues and 76 open pull requests.

The numbers

npm downloads, 4 weeks
38M ×8.1 in a year
GitHub stars
17k
Commits, 12 months
205
npm version
4.9.0 Aug 2026
Versions, 12 months
12
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
4.2 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (diegomura/react-pdf), npm (@react-pdf/renderer), OSV and the OpenSSF Scorecard.

PDF libraries

  1. 8.7PDF.js
  2. 7.6PDFKit
  3. 7.4React-PDF viewer
  4. 7.4unpdf
  5. 7.3React-pdf renderer
  6. 7.2pdfmake
  7. 6.9pdfme
  8. 6.4jsPDF
  9. 4.9pdf-lib
Compare all 9 on six scores