Nutrient Web SDK

v0.0.0-dev

ReferenceEventsPagePressEvent

Interface PagePressEvent

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

Interface

Example

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

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

Properties

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

number

The index of the page that was pressed.

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