# react-view-pdf

> A simple and powerful PDF Viewer library for React.js

Latest version **1.0.0** (published 2021-11-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-view-pdf
pnpm add react-view-pdf
yarn add react-view-pdf
bun add react-view-pdf
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-11-24 |
| First published | 2020-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | ZEISS Digital Innovation Partners |
| Maintainers | bajcmartinez, herrkris, dremar, guiherzog, alexey_nikonov |
| Keywords | react, pdf-viewer, pdf reader, pdf viewer, pdf |

## Links

- npm: https://www.npmjs.com/package/react-view-pdf
- Homepage: https://github.com/ZEISS/react-view-pdf
- npm.io page: https://npm.io/package/react-view-pdf

## Dependencies (3)

- [pdfjs-dist](https://npm.io/package/pdfjs-dist.md) ^2.10.377
- [use-debounce](https://npm.io/package/use-debounce.md) ^7.0.1
- [intersection-observer](https://npm.io/package/intersection-observer.md) ^0.12.0

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-11-24
- 0.1.9 — 2021-11-24
- 0.1.8 — 2021-11-18
- 0.1.7 — 2021-11-18
- 0.1.4 — 2021-11-17
- 0.1.3 — 2021-05-17
- 0.1.2 — 2020-11-30
- 0.1.1 — 2020-11-24
- 0.1.0 — 2020-11-19
- 0.0.15 — 2020-09-18
- 0.0.14 — 2020-09-09
- 0.0.13 — 2020-09-09
- 0.0.12 — 2020-09-09
- 0.0.11 — 2020-09-09
- 0.0.10 — 2020-07-31
- … 9 more at https://npm.io/package/react-view-pdf/versions

## README

# React PDF Reader

The purpose of this library is to provide a React component that works as a PDF Reader. It's basically a React wrapper from the pdf.js library from Mozilla.

## Using the Library

The library can be installed via the following commands:

```sh
npm i --save-dev react-view-pdf
```

Because this library uses components from `precise-ui`, it is necessary to add it as a dependency to your project:

```sh
npm i precise-ui
```

Then, simply import the component like below:

```js
import { PDFViewer } from 'react-view-pdf';

<PDFViewer url="http://www.africau.edu/images/default/sample.pdf" />

```

## Contributing

Feel free to contribute to it or open issues in case of bugs.


## Roadmap

1. Remove dependency on `precise-ui`.
2. Allow selection of texts.
3. Add built-in download button.

---
_Source: https://npm.io/package/react-view-pdf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
