GemBox.PdfViewer
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PageChangingEvent Interface

    Namespace:
    @gembox/pdfviewer
    Assembly:
    @gembox/pdfviewer

    Event triggered when changing pages in a PDF document.

    • TypeScript
    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.

    • TypeScript
    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.

    • TypeScript
    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)

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.