react-pdf-highlighter-extended
Scaled: {
    height: number;
    pageNumber: number;
    width: number;
    x1: number;
    x2: number;
    y1: number;
    y2: number;
}

"scaled" means that data structure stores (0, 1) coordinates. for clarity reasons I decided not to store actual (0, 1) coordinates but provide width and height, so user can compute ratio himself if needed

Type declaration

  • height: number
  • pageNumber: number

    1-Indexed page number

  • width: number
  • x1: number
  • x2: number
  • y1: number
  • y2: number

Author

Artem Tyurin artem.tyurin@gmail.com