🌐
npm
npmjs.com › package › react-pdf
react-pdf - npm
Latest version: 10.2.0, last published: 2 months ago. Start using react-pdf in your project by running `npm i react-pdf`. There are 985 other projects in the npm registry using react-pdf.
      » npm install react-pdf
    
Published   Oct 09, 2025
Version   10.2.0
Author   Wojciech Maj
🌐
React-pdf
react-pdf.org
React-pdf
React renderer for creating PDF files on the browser and server
🌐
npm
npmjs.com › package › @react-pdf › renderer
@react-pdf/renderer - npm
import ReactDOM from 'react-dom'; import { PDFViewer } from '@react-pdf/renderer'; const App = () => ( <PDFViewer> <MyDocument /> </PDFViewer> ); ReactDOM.render(<App />, document.getElementById('root'));
      » npm install @react-pdf/renderer
    
Published   Sep 23, 2025
Version   4.3.1
Author   Diego Muracciole
🌐
npm
npmjs.com › package › react-to-pdf
react-to-pdf - npm
import { usePDF } from 'react-to-pdf'; const Component = () => { const { toPDF, targetRef } = usePDF({filename: 'page.pdf'}); return ( <div> <button onClick={() => toPDF()}>Download PDF</button> <div ref={targetRef}> Content to be generated ...
      » npm install react-to-pdf
    
Published   Nov 25, 2025
Version   2.0.3
Author   Marcos Andrei Ivanechtchuk
🌐
GitHub
github.com › wojtekmaj › react-pdf
GitHub - wojtekmaj/react-pdf: Display PDFs in your React app as easily as if they were images.
This package is used to display existing PDFs. If you wish to create PDFs using React, you may be looking for @react-pdf/renderer. Install by executing npm install react-pdf or yarn add react-pdf.
Starred by 10.7K users
Forked by 981 users
Languages   TypeScript 94.3% | CSS 5.6% | HTML 0.1%
🌐
GitHub
github.com › studiojms › nodejs-react-pdf-example
GitHub - studiojms/nodejs-react-pdf-example: Creating PDF with nodejs using react-pdf lib
This project is a Proof of Concept ... · Create a PDF document based on API call (with images and styling) Go to http://localhost:4000/test?year=2012 ·...
Starred by 12 users
Forked by 5 users
Languages   JavaScript
🌐
Snyk
snyk.io › advisor › react-pdf › react-pdf code examples
Top 5 react-pdf Code Examples | Snyk
import { listFiles, getFile, putFile, deleteFile } from 'blockstack' import { pdfjs } from 'react-pdf' pdfjs.GlobalWorkerOptions.workerSrc = `/pdf.worker.min.js` const metadataFilePrefix = "metadata__" const filePrefix = "file__" const highlightsFilePrefix = "highlights__" const firstPageFilePrefix ...
🌐
GitHub
github.com › diegomura › react-pdf
GitHub - diegomura/react-pdf: 📄 Create PDF files using React
import React from 'react'; import ReactPDF from '@react-pdf/renderer'; ReactPDF.render(<MyDocument />, `${__dirname}/example.pdf`);
Starred by 16.2K users
Forked by 1.3K users
Languages   TypeScript 83.1% | JavaScript 16.8%
🌐
Nutrient
nutrient.io › blog › sdk › how to build a reactjs pdf viewer with react pdf
React PDF viewer: Complete guide to building with react-pdf in 2025
August 12, 2025 - You can use our demo document as an example; you just need to rename it to document.pdf. react-pdf comes with two components: Document and Page. Document is used to open a PDF and is mandatory. Within the document, you can mount pages, which are used to render the PDF page.
Find elsewhere
🌐
npm
npmjs.com › package › react-pdf-html
react-pdf-html - npm
Renders all nodes using the appropriate react-pdf components, applying cascading styles for each node as an array passed to the style prop: ... import Html from 'react-pdf-html'; const html = `<html> <body> <style> .my-heading4 { background: darkgreen; color: white; } pre { background-color: #eee; padding: 10px; } </style> <h1>Heading 1</h1> <h2 style="background-color: pink">Heading 2</h2> <h3>Heading 3</h3> <h4 class="my-heading4">Heading 4</h4> <p> Paragraph with <strong>bold</strong>, <i>italic</i>, <u>underline</u>, <s>strikethrough</s>, <strong><u><s><i>and all of the above</i></s></u></
      » npm install react-pdf-html
    
Published   Jan 15, 2025
Version   2.1.3
Author   Dan Blaisdell [email protected]
🌐
LogRocket
blog.logrocket.com › home › generating pdfs in react with react-pdf
Generating PDFs in React with react-pdf - LogRocket Blog
January 24, 2025 - Explore how to implement a PDF document generation feature in your React app using react-pdf and other popular PDF generation tools.
🌐
GitHub
github.com › javascriptiscoolpl › npm-simple-react-pdf
GitHub - javascriptiscoolpl/npm-simple-react-pdf: Simple PDF React component with vertical scroll bar (pdfjs-dist & ES6 syntax & Babel & Browserify).
Simple PDF React component with vertical scroll bar (pdfjs-dist & ES6 syntax & Babel & Browserify). - javascriptiscoolpl/npm-simple-react-pdf
Starred by 18 users
Forked by 18 users
Languages   JavaScript
🌐
CodeSandbox
codesandbox.io › examples › package › react-pdf
react-pdf examples - CodeSandbox
react-pdf · reactReact example starter project · pdf-viwer · pdf-reader · pdf-view · coolenginner/pdf-edit-react · pdf-sign · react-doc-viewerDocument viewer for react. Renders online/local documents. react-pdf-react-pageflip · react-pdf-sample-forked-displaying-pdf-using-react ·
🌐
Exportsdk
exportsdk.com › how-to-generate-pdfs-with-nodejs
How to Generate PDFs with NodeJS and React PDF | Export SDK
Next, we'll create a file with ... create-template.tsx and add the following. import React from "react"; import ReactPDF, { Page, Text, View, Document, StyleSheet, } from "@react-pdf/renderer";...
🌐
npm
npmjs.com › package › pdf-viewer-reactjs
pdf-viewer-reactjs - npm
import React from 'react' import PDFViewer from 'pdf-viewer-reactjs' const ExamplePDFViewer = () => { return ( <PDFViewer document={{ url: 'https://arxiv.org/pdf/quant-ph/0410100.pdf', }} /> ) } export default ExamplePDFViewer
      » npm install pdf-viewer-reactjs
    
Published   Feb 15, 2021
Version   2.2.3
Author   ansu5555
🌐
npm
npmjs.com › package › @pdf-viewer › react
@pdf-viewer/react - npm
Latest version: 1.13.1, last published: 5 days ago. Start using @pdf-viewer/react in your project by running `npm i @pdf-viewer/react`. There are no other projects in the npm registry using @pdf-viewer/react.
      » npm install @pdf-viewer/react
    
Published   Dec 04, 2025
Version   1.13.1
Author   React PDF Viewer
🌐
React PDF Viewer
react-pdf-viewer.dev › docs › getting-started
Getting started - React PDF Viewer
React PDF Viewer is powered by React hooks completely. So it requires React 16.8 or later · The TypeScript definition files of `@react-pdf-viewer` packages use `export type` syntax which is only available from TypeScript 3.8 · React PDF Viewer uses the APIs provided by the popular pdfjs library.
🌐
npm
npmjs.com › package › react-native-pdf
react-native-pdf - npm
Learn how you can use this package in Custom Dev Clients via the out-of-tree Expo Config Plugin. Example: with-pdf. # Using npm npm install react-native-pdf react-native-blob-util --save # or using yarn: yarn add react-native-pdf react-nati...
      » npm install react-native-pdf
    
Published   Oct 16, 2025
Version   7.0.3
Author   Wonday
🌐
npm
npmjs.com › package › @rawwee › react-pdf-html
@rawwee/react-pdf-html - npm
import React from "react"; // this ... />; export default App; In this example, we're rendering a simple PDF document with a single page that contains the text "Hello, World!"....
      » npm install @rawwee/react-pdf-html
    
Published   Oct 05, 2024
Version   1.2.1
Author   Josip Papež
🌐
Npm
npm.io › package › react-pdf
React-pdf NPM | npm.io
Display PDFs in your React app as easily as if they were images.