1.0.6 • Published 2 years ago

react-pdf-to-image-light v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

pdftoimage

slipt pdf file to image

NPM JavaScript Style Guide

Install

npm install --save pdftoimage

Usage

import React, { Component } from 'react'

import { PDFToImage } from 'react-pdf-to-image-light'

class Example extends Component {
  
  onConvertPDFToImage = () => {
    PDFToImage({
      blob: "", // source pdf base64 string. need to be starting with the prefix "data:application/pdf;base64," 
      scale: 1, 
    }).then(result => {
      console.log(result);
    }).catch(console.error)
  }

  render() {
    return <MyComponent />
  }
}

License

MIT © mtoan2111

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago