# @react-pdf/renderer

> PDFs, made with React

Source: https://talira.ai/catalog/react-pdf-renderer-e1aq29ey
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [documents / pdf / generation](https://talira.ai/categories/documents/pdf/generation), [languages / javascript](https://talira.ai/categories/languages/javascript), [frameworks / react](https://talira.ai/categories/frameworks/react)
- Platforms: web, linux, macos, windows
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: Diego Muracciole

@react-pdf/renderer (diegomura/react-pdf) is a [React](https://talira.ai/catalog/react-a48drvqv.md) renderer that builds PDFs from components such as Document, Page, View, Text and Image, styled with a StyleSheet API. Layout uses Yoga, so pages get flexbox rows, columns, wrapping and absolute positioning. The same document renders in the browser (to the DOM, a blob or a download link) or in Node to a file or stream, with custom fonts, images, SVG, form fields, hyphenation and page-break control. It creates PDFs; it is not the wojtekmaj/react-pdf viewer for displaying existing ones.

## Links

- Website: https://react-pdf.org
- GitHub: https://github.com/diegomura/react-pdf
- Docs: https://react-pdf.org/

## Problems it solves

- build PDF documents out of React components instead of HTML strings
- my frontend team knows React and I want them to own the invoice PDF layout
- show a live preview of the generated PDF next to a form in our React app
- add a 'Download PDF' button in a Next.js app without a backend service
- the same PDF component should render in the browser and on our Node server
- lay out a resume or certificate with flexbox and get a real vector PDF, not a screenshot
- generate PDFs in a serverless function without bundling a headless browser
- repeat a fixed header on every page and break long tables across pages from JSX
- register custom fonts and embed SVG logos in a PDF made in TypeScript

## Features

- React components for Document, Page, View, Text, Image and more
- StyleSheet API with flexbox layout via Yoga
- render in the DOM (PDFViewer), as a blob or download link, or to a file/stream in Node
- custom fonts
- images and SVG
- form fields
- hyphenation
- page-break control and fixed elements

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.69 out of 1.
Signals: maintenance 0.97, adoption 0.85, momentum 0.65, community 0.89, backing 0.20, extensibility 0.00.

- last commit 21 days ago
- 55 commits in the last 90 days
- latest release @react-pdf/ui@1.0.0 2 months ago
- 16.9k GitHub stars
- 169 contributors
- accepts sponsorship (Github, Open Collective)
- created by Diego Muracciole

## Alternatives

- [DocSpring](https://talira.ai/catalog/docspring-kjdwby1j.md): Fill PDF forms, generate PDFs and Word documents, and collect e-signatures with one API.
- [jsPDF](https://talira.ai/catalog/jspdf-1ag2wrna.md): Client-side JavaScript PDF generation for everyone.
- [pdf-lib](https://talira.ai/catalog/pdf-lib-80dtat8x.md): Create and modify PDF documents in any JavaScript environment.
- [pdfmake](https://talira.ai/catalog/pdfmake-811sdqwj.md): PDF document generation library for Node.js and browsers, written in pure JavaScript
- [PDFKit](https://talira.ai/catalog/pdfkit-2tzqj5bd.md): A JavaScript PDF generation library for Node and the browser.
- [Puppeteer](https://talira.ai/catalog/puppeteer-vbv4zakx.md): JavaScript API for Chrome and Firefox
