# React-pdf renderer: 7.3 out of 10

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

@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.

## Scores

- **Overall: 7.3** (likely 6.2 to 8.3)
  - Claude Opus 5.5 (7.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): 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 many: 4.1** (likely 3.0 to 5.2)
  - Claude Opus 5.5 (4.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): 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 lot: 7.3** (likely 6.2 to 8.3)
  - Claude Opus 5.5 (7.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): 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 time: 6.8** (likely 5.5 to 7.9)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (7.1): 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.
- **Used widely: 6.2** (likely 5.0 to 7.3)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (5.8): 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.
- **Vouched for: 6.1** (likely 4.8 to 7.4)
  - Claude Opus 5.5 (5.5): 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): 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.
- **Safe: 6.4** (likely 5.2 to 7.7)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.3): 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

- Downloads, 4 weeks: 38M
- In a year: ×8.1
- GitHub stars: 17k
- Commits, 12 months: 205
- Last npm release: Aug 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/diegomura/react-pdf
- npm: https://www.npmjs.com/package/@react-pdf/renderer

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.
