ComPDFKit Web SDK
    Preparing search index...

    Function setPageLabels

    • Sets custom page labels (the page number text under thumbnails). Labels must be unique (throws otherwise). When the count equals the page count, custom labels are turned on; otherwise they are stored but not used. They reset to 1..N when the document or pages change. Page labels stored in the PDF are not read.

      Parameters

      • pageLabels: string[]

        One label per page.

      • OptionaldocumentViewerKey: number

        The viewer key; the active viewer by default.

      Returns void