Interface: TextLineOnPressEvent

PSPDFKit.TextLineOnPressEvent

This event will be emitted whenever a click on a text line occurs that is not handled by any occluding page element (annotation, form, etc.).

Example

Register a TextLineOnPressEvent and get the point in PDF page coordinates.

instance.addEventListener("textLine.onPress", (event) => {
  console.log(event.point);
});

Members




Members

nativeEvent: PointerEvent

The browser event which caused the onPress event to dispatch.

Type:
  • PointerEvent

The point where the press event was detected in PDF page space coordinates.

Type:

textLine: PSPDFKit.TextLine

The text line that was clicked.

Type: