GitHub
github.com › react-pdf-viewer › react-pdf-viewer
GitHub - react-pdf-viewer/react-pdf-viewer: A React component to view a PDF document · GitHub
A React component to view a PDF document. It's written in TypeScript, and powered by React hooks completely. // Core viewer import { Viewer } from '@react-pdf-viewer/core'; // Plugins import { defaultLayoutPlugin } from '@react-pdf-viewer/d...
Starred by 2.6K users
Forked by 296 users
Languages TypeScript 97.5% | CSS 2.5%
npm
npmjs.com › package › @react-pdf-viewer › core
@react-pdf-viewer/core - npm
March 21, 2023 - A React component to view a PDF document. Latest version: 3.12.0, last published: 3 years ago. Start using @react-pdf-viewer/core in your project by running `npm i @react-pdf-viewer/core`. There are 178 other projects in the npm registry using ...
» npm install @react-pdf-viewer/core
Cannot find module '@react-pdf-viewer/core' or its corresponding type declarations.
There was an error while loading. Please reload this page · how to fix it, I use NextJS More on github.com
Best library for showing a pdf in react
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. More on reddit.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
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
13:10
How to View PDFs in React JS with React PDF Viewer - YouTube
14:28
This React PDF-Viewer Component Is Amazing! - YouTube
49:02
The Most Advanced React PDF Viewer - YouTube
12:11
How to view Pdf in React JS using react-pdf || Create customized ...
09:06
How to View Pdf in React using React PDF || React PDF Viewer || ...
npm
npmjs.com › package › @pdf-viewer › react
pdf-viewer/react
February 16, 2026 - Fast, Customizable and Web Responsive PDF viewer. Save you weeks of development time. ... Save Weeks of Development Time: React PDF simplifies PDF integration with ready-to-use tools, minimizing the need for custom development and saving you ...
» npm install @pdf-viewer/react
Published Feb 16, 2026
Version 1.19.0
CodeSandbox
codesandbox.io › examples › package › @react-pdf-viewer › core
@react-pdf-viewer/core examples - CodeSandbox
Use this online @react-pdf-viewer/core playground to view and fork @react-pdf-viewer/core example apps and templates on CodeSandbox.
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 { defaultLayoutPlugin } from '@react-pdf-viewer/default-layout'; // Import styles ·
Embedpdf
embedpdf.com › react-pdf-viewer
React PDF Viewer – Open Source, Headless & Customizable | EmbedPDF
The viewer runs entirely in the user's browser using WebAssembly. Your documents stay on the client, and you don't need to pay for any cloud processing or manage API keys. We use a virtualization engine (similar to react-window) that only renders the pages currently visible in the viewport. This keeps memory usage low and scrolling smooth, even for documents with 1000+ pages. Yes. The core library and all standard plugins are MIT licensed.
React PDF Viewer
react-pdf-viewer.dev › docs › basic-usage
Basic usage - React PDF Viewer
import { Viewer } from '@react-pdf-viewer/core'; // Import the styles · import '@react-pdf-viewer/core/lib/styles/index.css'; // Your render function · <Viewer fileUrl="/path/to/document.pdf" />; The `fileUrl` accepts various sources of documents, including a base 64 string, an array of bytes, or a URL.
React PDF Viewer
react-pdf-viewer.dev › docs › options
Options - React PDF Viewer
import { DocumentLoadEvent, Viewer } from '@react-pdf-viewer/core';
GitHub
github.com › react-pdf-viewer › react-pdf-viewer › issues › 1709
Cannot find module '@react-pdf-viewer/core' or its corresponding type declarations. · Issue #1709 · react-pdf-viewer/react-pdf-viewer
February 1, 2024 - Cannot find module '@react-pdf-viewer/core' or its corresponding type declarations.#1709 · Copy link · Labels · questionFurther information is requestedFurther information is requested · cuanh1612 · opened · on Feb 1, 2024 · Issue body actions · how to fix it, I use NextJS ·
Author cuanh1612
React-pdf
react-pdf.org
React-pdf
React renderer for creating PDF files on the browser and server
GitHub
github.com › react-pdf-viewer › react-pdf-viewer › releases
Releases · react-pdf-viewer/react-pdf-viewer
import type { SetRenderRange, VisiblePagesRange } from '@react-pdf-viewer/core'; const setRenderRange: SetRenderRange = React.useCallback((visiblePagesRange: VisiblePagesRange) => { return { startPage: visiblePagesRange.startPage - 10, endPage: visiblePagesRange.endPage + 10, }; }, []); // Another usage: render the first 20 pages initially const setRenderRange: SetRenderRange = React.useCallback((visiblePagesRange: VisiblePagesRange) => { return { startPage: visiblePagesRange.endPage <= 20 ?
Author react-pdf-viewer
npm
npmjs.com › package › @react-pdf-viewer-fork › core
@react-pdf-viewer-fork/core - npm
August 5, 2025 - A React component to view a PDF document. Latest version: 4.0.3, last published: 3 months ago. Start using @react-pdf-viewer-fork/core in your project by running `npm i @react-pdf-viewer-fork/core`. There are 20 other projects in the npm registry ...
» npm install @react-pdf-viewer-fork/core
npm
npmjs.com › package › react-pdf
react-pdf - npm
February 25, 2026 - Display PDFs in your React app as easily as if they were images.. Latest version: 10.4.1, last published: a month ago. Start using react-pdf in your project by running `npm i react-pdf`. There are 1048 other projects in the npm registry using ...
» npm install react-pdf
Published Feb 25, 2026
Version 10.4.1
DEV Community
dev.to › ryaddev › pdf-viewer-in-nextjs-134-using-react-pdf-viewer-nom
PDF Viewer in Nextjs 13.4 using @react-pdf-viewer - DEV Community
October 19, 2023 - // components/PdfViewer.jsx "use client"; import { Viewer, Worker } from "@react-pdf-viewer/core"; import "@react-pdf-viewer/core/lib/styles/index.css"; import { defaultLayoutPlugin } from "@react-pdf-viewer/default-layout"; import "@react-pdf-viewer/default-layout/lib/styles/index.css"; const PdfViewer = ({ url }) => { const defaultLayoutPluginInstance = defaultLayoutPlugin(); return ( <div className="h-screen w-screen"> <Worker workerUrl="https://unpkg.com/pdfjs-dist@3.10.111/build/pdf.worker.min.js"> <Viewer fileUrl={url} plugins={[defaultLayoutPluginInstance]} /> </Worker> </div> ); }; export default PdfViewer;
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
Npm
npm.io › package › @react-pdf-viewer › core
@react-pdf-viewer/core NPM | npm.io
import { Viewer } from '@react-pdf-viewer/core'; // Import styles import '@react-pdf-viewer/core/lib/styles/index.css'; <Viewer fileUrl='/path/to/document.pdf' />