Skip to content

A simple and powerful PDF Viewer library for React.js

License

Notifications You must be signed in to change notification settings

ZEISS/react-view-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Juan Cruz MartinezJuan Cruz Martinez
Juan Cruz Martinez
and
Juan Cruz Martinez
Nov 26, 2021
08b282c · Nov 26, 2021

History

53 Commits
Nov 24, 2021
Jan 31, 2020
Jan 31, 2020
Feb 5, 2020
Feb 5, 2020
Feb 5, 2020
Nov 26, 2021
Feb 3, 2020
Feb 3, 2020
Nov 24, 2021
Nov 26, 2021
Jan 31, 2020
Feb 5, 2020
Nov 23, 2021

Repository files navigation

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:

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:

npm i precise-ui

Then, simply import the component like below:

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.