React PDF viewer
v1.4.0

Getting started

Minimum requirement

React PDF Viewer is powered by React hooks. So it requires React 16.8 or later.

Installing pdfjs library

React PDF Viewer uses the APIs provided by the popular pdfjs library. Execute the following command from the root folder to install pdfjs:

npm install pdfjs-dist@2.2.228

The pdfjs-dist will be added to the dependencies section in package.json:

/* package.json */

{
    "dependencies": {
        "pdfjs-dist": "^2.2.228",
        ...
    }
}

Installing the npm package

npm install @phuocng/react-pdf-viewer@1.4.0