Nutrient Web SDK
    Preparing search index...

    Interface TextLinePressEvent

    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.).

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

    instance.addEventListener("textLine.press", (event) => {
    console.log(event.point);
    });
    interface TextLinePressEvent {
        nativeEvent: Event;
        point: NutrientViewer.Geometry.Point;
        textLine: NutrientViewer.TextLine;
    }
    Index

    Properties

    nativeEvent: Event

    The browser event which caused the press event to dispatch. This is either a MouseEvent, TouchEvent, or a PointerEvent.

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

    The text line that was clicked.