Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-pdf

> 前端框架
Open source

📄 Create PDF files using React

16.7K stars0 likes1 views
WebsiteGitHub

About

📄 Create PDF files using React

React renderer for creating PDF files on the browser and server

</a>
 <a href="https://opencollective.com/react-pdf">
  
</a>
<a href="https://github.com/diegomura/react-pdf/blob/master/LICENSE">
  
</a>
<a href="https://blockchain.com/btc/address/bc1qj223udztpmt5dck46dw0yap08yum63ht56h90v">
  
</a>
 <a href="https://blockchain.com/eth/address/0x4e1DB76bA0858BbCAa4DD804418D0D9EcF77B1cC">
  
</a>

Lost?

This package is used to create PDFs using React. If you wish to display existing PDFs, you may be looking for react-pdf.

How to install

bash
yarn add @react-pdf/renderer

How it works

…

Web. Render in DOM

javascript
import React from 'react';
import ReactDOM from 'react-dom';
import { PDFViewer } from '@react-pdf/renderer';

const App = () => (
  <PDFViewer>
    <MyDocument />
  </PDFViewer>
);

ReactDOM.render(<App />, document.getElementById('root'));

Node. Save in a file

javascript
import React from 'react';
import ReactPDF from '@react-pdf/renderer';

ReactPDF.render(<MyDocument />, `${__dirname}/example.pdf`);

Contributors

This project exists thanks to all the people who contribute. Looking to contribute? Please check our [contribute] document for more details about how to setup a development environment and submitting code.

Sponsors

Thank you to all our sponsors! [Become a sponsors]

Backers

Thank you to all our backers! [Become a backer]

License

MIT © Diego Muracciole


Issues· 333 open

View all issuesOpen on GitHub
  • #3575

    Expose textkit's excludeRects on <Text> (and fix an off-by-one in layoutParagraph's line widths)

    Updated Sep 25, 2026
  • #3285

    @react-pdf/renderer crashes when used via external package in Next.js App Router (monorepo)

    Updated Sep 23, 2026
  • #3570

    Node build can't render once bundled: pdfkit reads its standard fonts from disk next to its own module

    Updated Sep 22, 2026
  • #2789

    Spaces at the beginning of strings are not rendering for <Text /> components

    bugUpdated Sep 19, 2026
  • #2655

    Display Chinese Characters Vertically

    new featureUpdated Sep 18, 2026
  • #3567

    JPEG buffer mutated in place during EXIF parsing: corrupts orientation across renders in long-lived processes

    Updated Sep 16, 2026
  • #3566

    <Text render={...}> content disappears when an ancestor has lineHeight set

    Updated Sep 15, 2026
  • #3565

    Add panning and zooming on the playground, so you understand how to do it

    new featureUpdated Sep 13, 2026
  • #3561

    Active fork of fontkit

    Updated Sep 11, 2026
  • #3562

    Unable to set flexShrink to 0

    Updated Sep 10, 2026

> Tags

TypeScriptflexboxpdfreactrenderer

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架