Description
React PDF Viewer is a React component for showing PDF documents in a web page. It is written in TypeScript and built on React hooks. It supports password-protected documents, zooming to actual size, page fit or page width, navigation between pages, jumping to the first and last pages, text search, page thumbnails and a table of contents. Attachments can be listed and downloaded, pages can be rotated, and you can switch between text selection and a hand tool. Several scrolling modes are available, along with full-screen mode, document properties and printing. Users can open a local file by dragging it onto the viewer. The component supports server-side rendering and includes a dark mode, accessibility work and theming. The toolbar can be customized, and all text can be localized into other languages. The component is licensed commercially: the README says you have to purchase a commercial license at the official website before you use it. The project was developed by Nguyen Huu Phuoc, and the repository is on GitHub at react-pdf-viewer/react-pdf-viewer.…
Highlights
- PDF viewing in React with TypeScript and hooks
- Search, thumbnails and table of contents
- Password-protected documents
- Print, rotate and full-screen modes
- Customizable toolbar and localization
Ratings & Reviews
No ratings yet
Be the first to rate react-pdf-viewer.
People also visit

react-native-pdf
A react native PDF view component, support ios and android platform

@iamjariwala/react-doc-viewer
React document viewer with PDF tools, local DOCX and XLSX previews, images

react-pdf-highlighter-extended
Set of modern React components for PDF highlighting
react-pdf-viewer FAQ
What is React PDF Viewer?
A React component for viewing PDF documents, written in TypeScript and built on React hooks.
Is it free to use?
No. The README says you have to purchase a commercial license at the official website.
Does it support password-protected files?
Yes.
Can I customize it?
The toolbar can be customized, and all text items can be localized into another language.
Does it work with server-side rendering?
Yes. The README lists SSR support.
Where is the source?
On GitHub at react-pdf-viewer/react-pdf-viewer.
What are the best react-pdf-viewer alternatives?
Popular alternatives to react-pdf-viewer include react-native-pdf, react-pdf-highlighter and @iamjariwala/react-doc-viewer. See all react-pdf-viewer alternatives












