1.2.4 • Published 6 years ago

react-clipboard-ocr v1.2.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

react-clipboard-ocr

Simple React component for copy text from image (JPG, PNG, PDF etc.)

Insatall

npm i --save react-clipboard-ocr

Example

In React project

const ReactImageOCR = require('react-clipboard-ocr') //import the library
require('react-clipboard-ocr/style.css') //import the styles for cropper.js

//...
<ReactImageOCR/> //add in exist react component
//...

In other projects

import * as React from 'react'
import {render} from 'react-dom'
const ReactImageOCR = require('react-clipboard-ocr') //import the library
require('react-clipboard-ocr/style.css') //import the styles for cropper.js

render(<ReactImageOCR/>, document.getElementById('anyID'))