The simplest way to embed PDFs.

Under 1kB in size. Modern React hook architecture. Easily add embedded PDFs in your modern React web app.

pdf-viewer.tsx
package.json
const { pdfDocument, pdfPage } = usePdf({
file: 'test.pdf',
page,
canvasRef,
});

Introduction

Getting started

Learn how to get PDFs embedded in your React-based website quickly and easily.

Installation

Step-by-step guides to setting up your system and installing the library.

Basic Usage

Learn how to use the library to quickly get going.

Customization

Learn how to customize our library to get the results you want.

Examples

View some of our examples in various React frameworks.

Select a section to get started learning about @mikecousins/react-pdf


About

This library is maintained by Mike Cousins.

Github

github stars badge

https://www.github.com/mikecousins/react-pdf-js

npm

npm version badge npm downloads badge

https://www.npmjs.com/package/@mikecousins/react-pdf

Bundlephobia

Bundlephobia badge https://bundlephobia.com/package/@mikecousins/react-pdf

Publint

https://publint.dev/@mikecousins/react-pdf

Are The Types Wrong?

https://arethetypeswrong.github.io/?p=%40mikecousins%2Freact-pdf