🌐
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
    
Published   Mar 21, 2023
Version   3.12.0
Author   Nguyen Huu Phuoc
Discussions

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
🌐 github.com
5
February 1, 2024
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
🌐 r/reactjs
26
34
December 2, 2022
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
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 › @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
🌐
React PDF Viewer
react-pdf-viewer.dev › docs › getting-started
Getting started - React PDF Viewer
2. Installing the core package · npm install @react-pdf-viewer/core@3.12.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.
Find elsewhere
🌐
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
    
Published   Aug 05, 2025
Version   4.0.3
Author   Nguyen Huu Phuoc
🌐
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) - Nutrient
January 28, 2026 - This section walks through building a PDF viewer from scratch — setting up a React project, configuring the PDF.js worker, rendering pages, and adding features like navigation, zoom, thumbnails, outline support, error handling, and TypeScript types.
🌐
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;
🌐
Apryse
apryse.com › blog › build-custom-react-pdf-viewer-v2
How To Build a Customizable React PDF Viewer?
Once the package has been installed, copy the `public/core` contents located in your `node_modules/@pdftron/webviewer/public/core` to the `/public/webviewer/core` folder in your React app.
Published   October 14, 2024
🌐
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' />