Nutrient Web SDK
    Preparing search index...

    This record is used to persist the information for a bookmark.

    A bookmark is an object that registers a PDF action, usually triggered to go to a page.

    Hierarchy

    • Record<
          {
              action: null
              | NutrientViewer.Actions.Action;
              id: null | string;
              name: null | string;
              pdfBookmarkId: null | string;
          },
          this,
      > & Readonly<
          {
              action: null
              | NutrientViewer.Actions.Action;
              id: null | string;
              name: null | string;
              pdfBookmarkId: null | string;
          },
      >
      • Bookmark
    Index

    Properties

    The action that will be triggered when the bookmark is either clicked or tapped.

    Please refer to NutrientViewer.Actions for an in-depth look at PDF actions.

    id: string

    A unique identifier to describe the bookmark. When a bookmark is created in the UI, the viewer has to generate a unique ID.

    When changes are saved to the underlying bookmark provider, we call Instance#ensureChangesSaved to make sure the annotation has been persisted from the provider.

    name: null | string

    optional

    An optional name to associate to the bookmark.

    null
    
    pdfBookmarkId: null | string

    When the bookmark is extracted directly from a PDF file, the pdfBookmarkId refers to the identifier that was used in the PDF document.

    This ID is optional since newly created bookmarks using the SYNCProvider annotation provider won't have a pdfBookmarkId assigned.

    null
    
    toSerializableObject: (bookmark: NutrientViewer.Bookmark) => BookmarkJSON = toJSON

    Bookmark serializer. Converts a bookmark to InstantJSON compliant objects.

    Methods

    • Returns IterableIterator<
          [
              keyof {
                  action: null
                  | NutrientViewer.Actions.Action;
                  id: null | string;
                  name: null | string;
                  pdfBookmarkId: null | string;
              },
              null
              | string
              | number
              | NutrientViewer.Actions.Action,
          ],
      >

    • Returns this

      Map#asImmutable

    • Returns this

      Map#asMutable

    • Returns a new instance of this Record type with all values set to their default values.

      Returns this

    • Returns a new instance of this Record type with the value for the specific key set to its default value.

      Type Parameters

      • K extends keyof {
            action: null | NutrientViewer.Actions.Action;
            id: null | string;
            name: null | string;
            pdfBookmarkId: null | string;
        }

      Parameters

      • key: K

      Returns this

      remove

    • Parameters

      Returns this

      removeIn

    • Parameters

      • other: any

      Returns boolean

    • Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.

      If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.

      Type Parameters

      • K extends keyof {
            action: null | NutrientViewer.Actions.Action;
            id: null | string;
            name: null | string;
            pdfBookmarkId: null | string;
        }

      Parameters

      • key: K
      • OptionalnotSetValue: any

      Returns {
          action: null | NutrientViewer.Actions.Action;
          id: null | string;
          name: null | string;
          pdfBookmarkId: null | string;
      }[K]

    • Type Parameters

      • T

      Parameters

      • key: string
      • notSetValue: T

      Returns T

    • Parameters

      Returns any

    • Parameters

      • key: string

      Returns key is "id" | "name" | "action" | "pdfBookmarkId" | "sortKey"

    • Returns number

    • Parameters

      Returns boolean

    • Parameters

      • ...collections: (
            | Iterable<[string, any]>
            | Partial<
                {
                    action: null
                    | NutrientViewer.Actions.Action;
                    id: null | string;
                    name: null | string;
                    pdfBookmarkId: null | string;
                },
            >
        )[]

      Returns this

    • Parameters

      • ...collections: (
            | Iterable<[string, any]>
            | Partial<
                {
                    action: null
                    | NutrientViewer.Actions.Action;
                    id: null | string;
                    name: null | string;
                    pdfBookmarkId: null | string;
                },
            >
        )[]

      Returns this

    • Parameters

      • keyPath: Iterable<any>
      • ...collections: any[]

      Returns this

    • Parameters

      • merger: (oldVal: any, newVal: any, key: any) => any
      • ...collections: (
            | Iterable<[string, any]>
            | Partial<
                {
                    action: null
                    | NutrientViewer.Actions.Action;
                    id: null | string;
                    name: null | string;
                    pdfBookmarkId: null | string;
                },
            >
        )[]

      Returns this

    • Parameters

      • keyPath: Iterable<any>
      • ...collections: any[]

      Returns this

    • Parameters

      • merger: (
            oldVal: any,
            newVal: any,
            key: keyof {
                action: null | NutrientViewer.Actions.Action;
                id: null | string;
                name: null | string;
                pdfBookmarkId: null | string;
            },
        ) => any
      • ...collections: (
            | Iterable<[string, any]>
            | Partial<
                {
                    action: null
                    | NutrientViewer.Actions.Action;
                    id: null | string;
                    name: null | string;
                    pdfBookmarkId: null | string;
                },
            >
        )[]

      Returns this

    • Type Parameters

      • K extends keyof {
            action: null | NutrientViewer.Actions.Action;
            id: null | string;
            name: null | string;
            pdfBookmarkId: null | string;
        }

      Parameters

      • key: K

      Returns this

    • Parameters

      Returns this

    • Type Parameters

      • K extends keyof {
            action: null | NutrientViewer.Actions.Action;
            id: null | string;
            name: null | string;
            pdfBookmarkId: null | string;
        }

      Parameters

      • key: K
      • value: {
            action: null | NutrientViewer.Actions.Action;
            id: null | string;
            name: null | string;
            pdfBookmarkId: null | string;
        }[K]

      Returns this

    • Parameters

      Returns this

    • Deeply converts this Record to equivalent native JavaScript Object.

      Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.

      Returns { action: any; id: any; name: any; pdfBookmarkId: any }

      • action: any

        The action that will be triggered when the bookmark is either clicked or tapped.

        Please refer to NutrientViewer.Actions for an in-depth look at PDF actions.

      • id: any

        A unique identifier to describe the bookmark. When a bookmark is created in the UI, the viewer has to generate a unique ID.

        When changes are saved to the underlying bookmark provider, we call Instance#ensureChangesSaved to make sure the annotation has been persisted from the provider.

      • name: any

        optional

        An optional name to associate to the bookmark.

        null
        
      • pdfBookmarkId: any

        When the bookmark is extracted directly from a PDF file, the pdfBookmarkId refers to the identifier that was used in the PDF document.

        This ID is optional since newly created bookmarks using the SYNCProvider annotation provider won't have a pdfBookmarkId assigned.

        null
        
    • Shallowly converts this Record to equivalent native JavaScript Object.

      Returns {
          action: null | NutrientViewer.Actions.Action;
          id: null | string;
          name: null | string;
          pdfBookmarkId: null | string;
      }

      • action: null | NutrientViewer.Actions.Action

        The action that will be triggered when the bookmark is either clicked or tapped.

        Please refer to NutrientViewer.Actions for an in-depth look at PDF actions.

      • id: null | string

        A unique identifier to describe the bookmark. When a bookmark is created in the UI, the viewer has to generate a unique ID.

        When changes are saved to the underlying bookmark provider, we call Instance#ensureChangesSaved to make sure the annotation has been persisted from the provider.

      • name: null | string

        optional

        An optional name to associate to the bookmark.

        null
        
      • pdfBookmarkId: null | string

        When the bookmark is extracted directly from a PDF file, the pdfBookmarkId refers to the identifier that was used in the PDF document.

        This ID is optional since newly created bookmarks using the SYNCProvider annotation provider won't have a pdfBookmarkId assigned.

        null
        
    • Shallowly converts this Record to equivalent JavaScript Object.

      Returns {
          action: null | NutrientViewer.Actions.Action;
          id: null | string;
          name: null | string;
          pdfBookmarkId: null | string;
      }

      • action: null | NutrientViewer.Actions.Action

        The action that will be triggered when the bookmark is either clicked or tapped.

        Please refer to NutrientViewer.Actions for an in-depth look at PDF actions.

      • id: null | string

        A unique identifier to describe the bookmark. When a bookmark is created in the UI, the viewer has to generate a unique ID.

        When changes are saved to the underlying bookmark provider, we call Instance#ensureChangesSaved to make sure the annotation has been persisted from the provider.

      • name: null | string

        optional

        An optional name to associate to the bookmark.

        null
        
      • pdfBookmarkId: null | string

        When the bookmark is extracted directly from a PDF file, the pdfBookmarkId refers to the identifier that was used in the PDF document.

        This ID is optional since newly created bookmarks using the SYNCProvider annotation provider won't have a pdfBookmarkId assigned.

        null
        
    • Returns Keyed<
          keyof {
              action: null
              | NutrientViewer.Actions.Action;
              id: null | string;
              name: null | string;
              pdfBookmarkId: null | string;
          },
          null
          | string
          | number
          | NutrientViewer.Actions.Action,
      >

    • Type Parameters

      • K extends keyof {
            action: null | NutrientViewer.Actions.Action;
            id: null | string;
            name: null | string;
            pdfBookmarkId: null | string;
        }

      Parameters

      • key: K
      • updater: (
            value: {
                action: null | NutrientViewer.Actions.Action;
                id: null | string;
                name: null | string;
                pdfBookmarkId: null | string;
            }[K],
        ) => {
            action: null
            | NutrientViewer.Actions.Action;
            id: null | string;
            name: null | string;
            pdfBookmarkId: null | string;
        }[K]

      Returns this

    • Parameters

      • keyPath: Iterable<any>
      • updater: (value: any) => any

      Returns this

    • Returns boolean

      Map#wasAltered

    • Note: Not all methods can be used on a mutable collection or within withMutations! Only set may be used mutatively.

      Parameters

      • mutator: (mutable: this) => any

      Returns this

      Map#withMutations