ComPDFKit Web SDK
    Preparing search index...

    Function importBookmarks

    • Replaces all user bookmarks with the given ones (existing bookmarks not in the object are removed).

      Parameters

      • bookmarks: Record<number, string>

        An object mapping 0-based page indexes to bookmark texts.

      • OptionaldocumentViewerKey: number

        The viewer key; the active viewer by default.

      Returns void