# OnedocLabs/react-print-pdf

Build and generate PDF using React 📄 UI kit for PDFs and print documents. Simple, reusable components and templates to create great invoices, docs, brochures. Use your favorite front-end framework React to build your next PDF.

Repository: https://github.com/OnedocLabs/react-print-pdf
Canonical: https://ross.abutalabs.com/products/react-print-pdf
Homepage: https://github.com/OnedocLabs/react-print-pdf/tree/main/docs
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: pdf, react, print, ui-kit, react-print, ui, front-end, html, javascript, ycombinator, document, documents, open-source, opensource, pdf-generator, pdf-library, pdf-manipulation, pdf-reader, pdf-reports, fileforge
Last push: 2024-09-12T17:37:01+00:00

## Health v2 (maintenance only)
Score: 26/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 68
- inputs: {"age_days": 953, "days_push": 720, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2556, forks 100 (observed 2026-08-28T04:07:00.755699+00:00)

## What it is
react-print-pdf is an open-source React component library for building and generating PDF documents using reusable, unstyled components and templates. It lets developers create invoices, brochures, reports, and other print documents with full layout control using familiar React and TypeScript patterns.

## Use cases
- generate invoices as pdfs from react components
- create pdf reports with dynamic data from a database
- build printable brochures and documents in react
- design pdf templates with headers footers and margins
- automate document generation for contracts or resumes
- render html and react components to pdf

## When to choose
- you already use React and want a component-based approach to PDF creation
- you need full control over document layout including margins, headers, and footers
- you want to inject dynamic data into templated documents like invoices or reports

## When to avoid
- you need to parse or manipulate existing PDFs rather than generate new ones
- your stack is not React-based and you prefer simpler HTML-to-PDF converters
- you need pixel-perfect PDFs matching complex legacy print specifications

## Facets
- artifact type: library
- maturity: active
- function: pdf, ui-components, templating
- domain: pdf, web-development, frontend, developer-tools
- platform: cross-platform
- tags: react, pdf-generation, document-templates, typescript, ui-kit, invoices, print, nodejs

## Member repositories
- OnedocLabs/react-print-pdf (main) score 26

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:00.755699+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-30T02:23:39.502189+00:00, confidence not recorded.
  - readme: https://github.com/OnedocLabs/react-print-pdf (fetched 2026-08-28T04:07:00.755699+00:00, sha be468de16f16)
  - homepage: https://github.com/OnedocLabs/react-print-pdf/tree/main/docs (fetched 2026-08-29T10:06:31.418773+00:00, sha 13d4407d54db)
- Data as of 2026-08-30T08:39:29.467469+00:00.
