MGrin / mgr-pdf-viewer-react

React PDF Viewer component
MIT License
72 stars 24 forks source link
pdf react

Depreciation notice

This project is not maintained anymore. Feel free to:

New section

mgr-pdf-viewer-react

Simple react PDF Viewer component with controls. Every element can be styled upon your preferences using default classes our your own.

Example: mgr-pdf-viewer-react

How to install

npm install mgr-pdf-viewer-react --save

How to use

Since it is a React module, I suppose you have the webpack and babel configured.

import React from 'react';
import PDFViewer from 'mgr-pdf-viewer-react';

const ExamplePDFViewer = () => {
  return (<PDFViewer document={{
    url: 'https://arxiv.org/pdf/quant-ph/0410100.pdf'
  }} />);
}

export default ExamplePDFViewer

Documentation

React component prop. types: