Optional areaWhen true, shows crosshair cursor indicating area selection mode is active. Use this when area selection should be persistently enabled (not just on modifier key).
This should be a highlight container/renderer of some sorts. It will be given appropriate context for a single highlight which it can then use to render a TextHighlight, AreaHighlight, etc. in the correct place.
Optional drawingStroke color for drawing mode.
"#000000"
Optional drawingStroke width for drawing mode.
3
Optional enableWhether drawing mode is enabled.
Optional enableThe type of shape to create, or null if shape mode is not active.
Array of all highlights to be organised and fed through to the child highlight container.
Optional mouseOptional CSS styling for the rectangular mouse selection.
PDF document to view and overlay highlights.
Optional pdfWhat scale to render the PDF at inside the viewer.
Optional selectionOptional element that can be displayed as a tip whenever a user makes a selection.
Optional shapeStroke color for shape mode.
"#000000"
Optional shapeStroke width for shape mode.
2
Optional styleStyle properties for the PdfHighlighter (scrollbar, background, etc.), NOT
the PDF.js viewer it encloses. If you want to edit the latter, use the
other style props like textSelectionColor or overwrite pdf_viewer.css
Optional textColoring for unhighlighted, selected text.
Optional enableOptional enableOptional enableOptional onCallback triggered whenever a ghost (non-permanent) highlight is created.
Ghost Highlight that has been created.
Optional onOptional onCallback triggered when a drawing is completed.
The drawing as a PNG data URL.
Scaled position of the drawing on the page.
The stroke data for later editing.
Optional onCallback triggered when user clicks to create a freetext annotation.
Scaled position where the click occurred.
Optional onCallback triggered when user clicks to create an image annotation.
Scaled position where the click occurred.
Optional onCallback triggered whenever a ghost (non-permanent) highlight is removed.
Ghost Highlight that has been removed.
Optional onOptional onCallback triggered whenever a user finishes making a mouse selection or has selected text.
Content and positioning of the selection. NOTE:
makeGhostHighlight will not work if the selection disappears.
Optional onOptional onCallback triggered when a shape is completed.
Scaled position of the shape on the page.
The shape data (type, color, width).
Creates a reference to the PdfHighlighterContext above the component.
various useful tools with a PdfHighlighter. See PdfHighlighterContext for more description.
The props type for PdfHighlighter.