npm
npmjs.com › package › react-pdf
react-pdf - npm
Display PDFs in your React app as easily as if they were images.. 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 ...
» npm install react-pdf
Published Oct 09, 2025
Version 10.2.0
Author Wojciech Maj
Repository https://github.com/wojtekmaj/react-pdf
GitHub
github.com › mikecousins › react-pdf-js
GitHub - mikecousins/react-pdf-js: A React component to wrap PDF.js
Starred by 799 users
Forked by 151 users
Languages TypeScript 90.7% | JavaScript 6.9% | CSS 2.0% | HTML 0.4%
Videos
09:06
How to View Pdf in React using React PDF || React PDF Viewer || ...
15:35
How to generate PDF in React using React pdf - YouTube
23:38
Generate a PDF in React - YouTube
13:08
Build a React.js PDF Viewer & Editor With Controls Using ...
12:11
How to view Pdf in React JS using react-pdf || Create customized ...
49:02
The Most Advanced React PDF Viewer - YouTube
React-pdf
react-pdf.org
React-pdf
React renderer for creating PDF files on the browser and server
GitHub
github.com › wojtekmaj › react-pdf
GitHub - wojtekmaj/react-pdf: Display PDFs in your React app as easily as if they were images.
Add React-PDF to your project by executing npm install react-pdf or yarn add react-pdf. If you use Next.js prior to v15 (v15.0.0-canary.53, specifically), you may need to add the following to your next.config.js:
Starred by 10.7K users
Forked by 981 users
Languages TypeScript 94.3% | CSS 5.6% | HTML 0.1%
Stack Overflow
stackoverflow.com › questions › 73919619 › how-to-use-pdf-js-with-react
reactjs - How to use PDF.JS with React? - Stack Overflow
export default function Home() { const [data, setData] = useState(); const handleFile = (e) => { const file = e.target.files[0]; const fileReader = new FileReader(); fileReader.onload = (d) => { setData(new Uint32Array(d.target.result)); }; }; return ( <> <h1>hello!</h1> <input type="file" accept="application/pdf" placeholder="insert PDF here" onChange={(e) => handleFile(e)} /> <PDFViewer pdfFile={data} /> </> ); }
Newline
newline.co › fullstack-react › assets › media › sGEMe › MNzue › 30-days-of-react-ebook-fullstackio.pdf pdf
30 Days Of React - Newline.co
As a beginner in React, the book helped me to understand some points that were still blurry for me about React and helped me build my first basic app. The code samples are really detailed. It was really awesome. ... Great book! I come from Flex, so seeing some of the same approach in JS is exciting.
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 - Implementation considerations: Evaluate whether custom development time with react-pdf aligns with project timelines, or if a comprehensive solution like Nutrient’s React PDF library better fits your feature requirements and development resources. Start by creating a React.js project with ...
React PDF Viewer
react-pdf-viewer.dev
A React component to view PDF documents - React PDF Viewer
A React component to view PDF documents
GitHub
github.com › diegomura › react-pdf
GitHub - diegomura/react-pdf: 📄 Create PDF files using React
import React from 'react'; import { Document, Page, Text, View, StyleSheet } from '@react-pdf/renderer'; // Create styles const styles = StyleSheet.create({ page: { flexDirection: 'row', backgroundColor: '#E4E4E4', }, section: { margin: 10, padding: 10, flexGrow: 1, }, }); // Create Document Component const MyDocument = () => ( <Document> <Page size="A4" style={styles.page}> <View style={styles.section}> <Text>Section #1</Text> </View> <View style={styles.section}> <Text>Section #2</Text> </View> </Page> </Document> );
Starred by 16.2K users
Forked by 1.3K users
Languages TypeScript 83.1% | JavaScript 16.8%
npm
npmjs.com › package › react-to-pdf
react-to-pdf - npm
Create PDF documents from React Components. Latest version: 2.0.3, last published: 17 days ago. Start using react-to-pdf in your project by running `npm i react-to-pdf`. There are 28 other projects in the npm registry using react-to-pdf.
» npm install react-to-pdf
Published Nov 25, 2025
Version 2.0.3
Author Marcos Andrei Ivanechtchuk
Repository https://github.com/ivmarcos/react-to-pdf
TutorialsPoint
tutorialspoint.com › reactjs › reactjs_tutorial.pdf pdf
ReactJS i
Let us analyse the structure of our React application. ... The package.json is the core file representing the project.
npm
npmjs.com › package › react-pdf-js
react-pdf-js - npm
Simple React component to wrap up PDF.js. The easiest way to render PDFs in your React app.. Latest version: 5.1.0, last published: 6 years ago. Start using react-pdf-js in your project by running `npm i react-pdf-js`. There are 31 other projects in the npm registry using react-pdf-js.
» npm install react-pdf-js
Published Jun 19, 2019
Version 5.1.0
Author mikecousins
Repository https://github.com/mikecousins/react-pdf-js
CodeSandbox
codesandbox.io › examples › package › react-pdf-js
react-pdf-js examples - CodeSandbox
AboutSimple React component to wrap up PDF.js.
Reddit
reddit.com › r/reactjs › how to generate pdfs in react?
r/reactjs on Reddit: How to generate PDFs in react?
May 14, 2023 -
sip mighty fearless gaze school scary one shelter profit dinner
This post was mass deleted and anonymized with Redact
Top answer 1 of 35
99
Why not have your backend build the pdf instead?
2 of 35
41
You could use https://react-pdf.org for this. I used it with Node to generate wedding invitations last year. It's supposed to work both backend and frontend. They also have a component for generation and download in the frontend: https://react-pdf.org/components#pdfdownloadlink
Stanford University
web.stanford.edu › class › cs142 › lectures › ReactJS.pdf pdf
CS142 Lecture Notes - ReactJS ReactJS Introduction Mendel Rosenblum
Babel - Transpile language features (e.g. ECMAScript, JSX) to basic JavaScript · Webpack - Bundle modules and resources (CSS, images) Output loadable with single script tag in any browser ... Inherits from React.Component.
Reddit
reddit.com › r/reactjs › best library for showing a pdf in react
r/reactjs on Reddit: Best library for showing a pdf in react
December 2, 2022 -
Hey, I wanted to find out a library in react which can display a pdf from a url. So far I have tried react-pdf from wojtekmaj, it works just fine but I wanted a free library which can provide toolbars also. Let me know if you know any library or a way to build it.
Thanks
Top answer 1 of 5
38
If you don't need direct control over the PDF in any way, then just use an IFrame. It'll make the browser use their default viewer, which is generally a pretty decent one. There's also one made by Mozilla ( PDF.js ), but any PDF viewer is going to be pretty heavy in terms of code size.
2 of 5
6
SimplePDF embed for React will allow you to not only display PDFs but also edit them: Add text, pictures, signatures Add, remove, rotate pages Disclosure: I’m the developer behind SimplePDF