# diegomura/react-pdf

📄  Create PDF files using React

Repository: https://github.com/diegomura/react-pdf
Canonical: https://ross.abutalabs.com/products/react-pdf
Homepage: https://react-pdf.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, pdf, renderer, flexbox
Last push: 2026-08-26T22:23:49+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 3606, "days_push": 7, "days_rel": 9, "gap_med": 0, "n_releases_24m": 184}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 16761, forks 1340 (observed 2026-08-28T04:11:17.175068+00:00)

## What it is
A React renderer for creating PDF files declaratively using React components, running in both the browser and Node.js. It supports flexbox layout via Yoga, custom fonts, images, SVG, form fields, and outputs to files, streams, or blobs.

## Use cases
- generate pdf invoices from react components
- create pdf reports on the server with node
- render pdf documents in the browser for download
- build printable documents with flexbox layout
- generate pdfs with custom fonts and svg graphics
- create pdf/a compliant documents

## When to choose
- you already use React and want declarative PDF generation
- you need the same PDF rendering code in browser and server
- you want flexbox-based page layout with styles similar to CSS

## When to avoid
- you only need to display existing PDFs (use a PDF viewer instead)
- you need pixel-perfect conversion of HTML pages to PDF
- your project does not use React

## Facets
- artifact type: library
- maturity: active
- function: pdf, templating, ui-components
- domain: pdf, frontend, web-development, files
- platform: browser, cross-platform
- tags: react, pdf-generation, flexbox-layout, document-rendering, typescript, nodejs, web-server

## Member repositories
- diegomura/react-pdf (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:17.175068+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:04:16.537499+00:00, confidence not recorded.
  - readme: https://github.com/diegomura/react-pdf (fetched 2026-08-28T04:11:17.175068+00:00, sha ae069e3c3a7a)
  - homepage: https://react-pdf.org (fetched 2026-08-29T08:02:13.170731+00:00, sha 0750181a2b3c)
  - site_page: https://react-pdf.org/docs/v4 (fetched 2026-08-29T08:02:13.179675+00:00, sha 28f13239ed22)
  - site_page: https://react-pdf.org/changelog (fetched 2026-08-29T08:02:13.181554+00:00, sha 4cbb8a7df7fa)
- Data as of 2026-08-30T08:39:29.467469+00:00.
