PageChangingEvent Interface
Event triggered when changing pages in a PDF document.
export declare interface PageChangingEvent extends ViewerEvent
Remarks
This event provides access to both previous and target page numbers during navigation, allowing listeners to cancel or modify the page change before it occurs.
Fields
previousPage
Gets the zero-based index of the page that was previously active before navigation.
readonly previousPage: number;
Remarks
This property represents the page index (zero-based) from which the navigation originated.
page
The target page index (zero-based index). Can be modified to change the destination page.
page: number;
Inherited Fields
| defaultPrevented | Gets a value indicating whether the event's default action has been canceled. (Inherited from ViewerEvent) |
Inherited Methods
| preventDefault | Cancels the event if it is cancelable, without stopping further propagation of the event. (Inherited from ViewerEvent) |