1.1.8 • Published 6 months ago

@spce/pdfreader v1.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

ngager-pdfreader

PDF Reader component using PDF.js library

NPM JavaScript Style Guide

Install

npm install --save ngager-pdfreader

Example

https://ngager-group.github.io/ngager-pdfreader/

Usage

import React, { Component } from 'react'

import PDF from 'ngager-pdfreader'

class Example extends Component {
  render () {
    return (
      <PDF
        popup
        src="https://nclong87.github.io/file-example_PDF_500_kB.pdf"
        downloadable
        onRequestClose={() => this.setState({ open: false })}
        onLastPage={() => console.log('onLastPage')}
        onPageChanged={(currentPage) => console.log('currentPage', currentPage)}
      />
    )
  }
}

License

MIT © ngager-group

1.1.8

6 months ago

1.1.7

7 months ago

1.1.6

8 months ago

1.1.5

8 months ago

1.1.4

8 months ago

1.1.3

11 months ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago