1.0.24 • Published 3 years ago

rl-react-pdf v1.0.24

Weekly downloads
67
License
ISC
Repository
-
Last release
3 years ago

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} />
1.0.19

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.16

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago