Skip to content

a light and good enhanced pdf viewer plugin for react

Notifications You must be signed in to change notification settings

lcc19941214/light-pdf-viewer

Repository files navigation

light-pdf-viewer

Features

A light component to preview pdf files, offer toolbox with pager, zoomer and download, etc.

Install

light-pdf-viewer is dependant on pdfjs-dist so make sure you have installed it in advance.

npm install --save pdfjs-dist@1.9.456
npm install --save react-light-pdf-viwer

Usage

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PDFViewer from 'react-light-pdf-viewer';

ReactDOM.render(
  <PDFViewer URI="URI or dataurl of your pdf" />,
  document.getElementById('root')
);

Online demo

About

a light and good enhanced pdf viewer plugin for react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published