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. · GitHub
Class name(s) that will be added to rendered element along with the default react-pdf__Thumbnail. ... Function called when a thumbnail has been clicked. Usually, you would like to use this callback to move the user wherever they requested to. ... The MIT License. ... This project wouldn't be possible without the awesome work of Niklas Närhinen who created its original version and without Mozilla, author of pdf.js.
Starred by 11K users
Forked by 1K users
Languages TypeScript 94.5% | CSS 5.4% | HTML 0.1%
reactjs - How to use PDF.JS with React? - Stack Overflow
I would like to parse a pdf file in a React app. The pdf will be provided through a html input. I used pdf-parse - a wrapper around pdf.js in node - without any problem. But when it comes to React, I More on stackoverflow.com
PDF Viewer libs for React, that works on mobile
Can’t you simply use the browser’s built-in functionality to display a PDF? More on reddit.com
How to edit PDF in React application?
That's a feature/library you could build a whole company around. But yes. Directly working with a pdf is hard, you probably wanna convert it. Converting it back and forth without loss of information is also hard. More on reddit.com
Looking for a PDF viewer in React that supports highlighting multiple bounding box (bbox) coordinates
Check this out: https://github.com/agentcooper/react-pdf-highlighter Demo: https://agentcooper.github.io/react-pdf-highlighter/ More on reddit.com
Videos
12:11
How to view Pdf in React JS using react-pdf || Create customized ...
15:35
How to generate PDF in React using React pdf - YouTube
10:48
How to generate a PDF from a React component - YouTube
14:28
This React PDF-Viewer Component Is Amazing! - YouTube
07:26
Create Custom PDF Viewer using React PDF & React Hooks - YouTube
11:12
ReactPDF Basic Setup - YouTube
npm
npmjs.com › package › react-pdf
react-pdf - npm
February 25, 2026 - Latest version: 10.4.1, last published: 2 months ago. Start using react-pdf in your project by running `npm i react-pdf`. There are 1051 other projects in the npm registry using react-pdf.
» npm install react-pdf
Published Feb 25, 2026
Version 10.4.1
CodeSandbox
codesandbox.io › examples › package › react-pdf-js
react-pdf-js examples - CodeSandbox
Use this online react-pdf-js playground to view and fork react-pdf-js example apps and templates on CodeSandbox.
GitHub
github.com › mikecousins › react-pdf-js
GitHub - mikecousins/react-pdf-js: A React component to wrap PDF.js
import React, { useState, useRef } from 'react'; import { usePdf } from '@mikecousins/react-pdf'; const MyPdfViewer = () => { const [page, setPage] = useState(1); const canvasRef = useRef(null); const { pdfDocument, pdfPage } = usePdf({ file: 'test....
Starred by 803 users
Forked by 151 users
Languages TypeScript 90.7% | JavaScript 6.9% | CSS 2.0% | HTML 0.4% | TypeScript 90.7% | JavaScript 6.9% | CSS 2.0% | HTML 0.4%
Nutrient
nutrient.io › blog › sdk › how to build a reactjs pdf viewer with react pdf
How to build a React PDF viewer with react-pdf (2026)
January 28, 2026 - For PDFs without an outline, it renders nothing. The Document and Page components accept loading, error, and noData props for displaying a fallback user interface (UI): ... The onLoadError callback receives the error object. This example stores it in state and shows a retry button. Incrementing retryKey forces React to remount the Document component, which retries the PDF load.
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.5K users
Forked by 1.3K users
Languages TypeScript 83.6% | JavaScript 16.4%
PDF.js Express
pdfjs.express › documentation › get-started › react
Integrate React & JavaScript PDF Viewer | PDF.js Express SDK
const MyComponent = () => { const viewer = useRef(null); useEffect(() => { WebViewer( { path: '/webviewer/lib', initialDoc: '/files/pdftron_about.pdf', }, viewer.current, ).then((instance) => { }); }, []); return ( <div className="MyComponent"> <div className="header">React sample</div> <div className="webviewer" ref={viewer}></div> </div> ); };
npm
npmjs.com › package › react-pdf-js
react-pdf-js - npm
June 19, 2019 - Latest version: 5.1.0, last published: 7 years ago. Start using react-pdf-js in your project by running `npm i react-pdf-js`. There are 32 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
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() ... ( <> <h1>hello!</h1> <input type="file" accept="application/pdf" placeholder="insert PDF here" onChange={(e) => handleFile(e)} /> <PDFViewer pdfFile={data} /> </> ); }...
Wojtekmaj
projects.wojtekmaj.pl › react-pdf
React-PDF
Easily display PDFs in your React app.
React PDF Viewer
react-pdf-viewer.dev › examples
Examples - React PDF Viewer
React PDF Viewer · Docs · Plugins · Localizations · Examples · UpdatesPurchase · The sample codes for examples and plugins can be found on this GitHub repo · Compile and set the worker source with Webpack · How to solve the "SyntaxError: Unexpected token" issue ·
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 ·
PDF.js Express
pdfjs.express › documentation › react
React PDF.js Viewer: Annotate, Form Fill, Sign | PDF.js Express
It is compatible with any JavaScript framework, including React, by using a DOM element to place the document viewing component. Try online demo PDF.js Express in 2 minutes (video) Samples API reference
React PDF Viewer
react-pdf-viewer.dev
A React component to view PDF documents - React PDF Viewer
React PDF Viewer · Docs · Plugins · Localizations · Examples · UpdatesPurchase · You can drag and drop a PDF document to the demo area below · // Core viewer · import { Viewer } from '@react-pdf-viewer/core'; // Plugins · import { ...
PDF.js Express
pdfjs.express › documentation › get-started-viewer › react
Integrate React & JavaScript PDF Viewer | PDF.js Express Viewer SDK
Import WebViewer into your component. import WebViewer from '@pdftron/pdfjs-express-viewer'; Create a reference where WebViewer will be placed or mounted. const MyComponent = () => { const viewer = useRef(null); return ( <div className="MyC...