react-pdf-highlighter-extended
ScaledPosition: {
    boundingRect: Scaled;
    rects: Scaled[];
    usePdfCoordinates?: boolean;
}

Position of a Highlight with normalised coordinates.

Type declaration

  • boundingRect: Scaled

    Bounding rectangle for the entire highlight.

  • rects: Scaled[]

    For text highlights, the rectangular highlights for each block of text.

  • Optional usePdfCoordinates?: boolean

    Rarely applicable property of whether coordinates should be in PDF coordinate space.