rl-react-pdf

1.0.24 • Public • Published

This is a sample react pdf reader with annotation

Usage

import PDFReader from "rl-react-pdf"

const handleSelectArea = (position) => {
    // SAMPLE 'POSITION' OBJECT STRUCTURE
    //  position = {
    //     boundingRect: {
    //       x1: 255.73419189453125,
    //       y1: 139.140625,
    //       x2: 574.372314453125,
    //       y2: 165.140625,
    //       width: 809.9999999999999,
    //       height: 1200
    //     },
    //     rects: [
    //       {
    //         x1: 255.73419189453125,
    //         y1: 139.140625,
    //         x2: 574.372314453125,
    //         y2: 165.140625,
    //         width: 809.9999999999999,
    //         height: 1200
    //       }
    //     ],
    //     pageNumber: 1
    //   }
}
<PDFReader url={"LOCATION/TO/PDF"} onSelectArea={handleSelectArea} />

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.240latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.240
1.0.230
1.0.220
1.0.210
1.0.200
1.0.190
1.0.180
1.0.170
1.0.160
1.0.150
1.0.140
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i rl-react-pdf

Weekly Downloads

0

Version

1.0.24

License

ISC

Unpacked Size

27.5 kB

Total Files

11

Last publish

Collaborators

  • datapractice