1.0.24 • Published 4 years ago

rl-react-pdf v1.0.24

Weekly downloads
67
License
ISC
Repository
-
Last release
4 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

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.16

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago