🌐
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%
Discussions

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
🌐 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
🌐 r/react
20
9
March 9, 2025
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
🌐 r/reactjs
7
4
February 3, 2025
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
🌐 r/reactjs
15
4
January 27, 2024
🌐
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.
🌐
Nutrient
nutrient.io › blog › sdk › how to build a reactjs viewer with pdfjs
Build a React PDF viewer with pdfjs-dist and Next.js: Step-by-step tutorial
February 20, 2026 - Build a React PDF viewer with pdfjs-dist and Next.js. Includes code examples, troubleshooting, and a comparison with Nutrient SDK.
🌐
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%
Find elsewhere
🌐
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
🌐
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} /> </> ); }...
🌐
React PDF Viewer
react-pdf-viewer.dev › docs › basic-usage
Basic usage - React PDF Viewer
For example, in a typical React application, we often render the `App` component at a `root` element as following: ... return <Worker workerUrl="https://unpkg.com/pdfjs-dist@3.4.120/build/pdf.worker.min.js">...</Worker>;
🌐
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 ·
🌐
Wojtekmaj
projects.wojtekmaj.pl › react-pdf
React-PDF
Easily display PDFs in your React app.
🌐
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 ·
🌐
Apryse
apryse.com › blog › building-react-pdf-viewer-with-pdfjs
How to Build a React PDF Viewer with PDF.js
October 17, 2018 - In this tutorial, we show you how to create a React PDF viewer using PDF.js that you can use in your projects to open a PDF file and display its pages.
🌐
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...