0.0.6 • Published 7 years ago

react-pdf-js-infinite-slugs v0.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

react-pdf-js-infinite-slugs


npm version

react-pdf-js-infinite-slugs provides a component for rendering PDF documents using PDF.js. Written for React 15 and ES2015 using the Airbnb style guide. Include onclick callbacks to specific locations.


Usage

Install with npm install react-pdf-js-infinite-slugs

Use in your app

import React, { Component } from 'react';
import PDF from 'react-pdf-js-infinite-slugs';

export default class Viewer extends Component {

  render() {
    return (
      <div>
        <PDF 
          file="somefile.pdf" 
          scale={1.5} 
          onClick={(e,coordinates) => {
            console.log(coordinates);
          }}
        />
      </div>
    )
  }
}

Credit

This project is a fork of react-pdf-js-infinite which is a fork of react-pdf-js which is a fork of react-pdfjs which itself was a port of react-pdf, so thank you to the original authors.

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago