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.
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.
Readonlynameoptional
An optional name to associate to the bookmark.
ReadonlypdfWhen 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.
StatictoBookmark serializer. Converts a bookmark to InstantJSON compliant objects.
Returns a new instance of this Record type with all values set to their default values.
Returns a new instance of this Record type with the value for the specific key set to its default value.
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.
OptionalnotSetValue: anyDeeply 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.
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.
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.
optional
An optional name to associate to the bookmark.
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.
Shallowly converts this Record to equivalent native JavaScript Object.
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.
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.
optional
An optional name to associate to the bookmark.
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.
Shallowly converts this Record to equivalent JavaScript Object.
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.
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.
optional
An optional name to associate to the bookmark.
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.
StaticfromBookmark deserializer. Converts a bookmark object to a NutrientViewer.Bookmark.
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.
Example
Creating a bookmark for the 3rd page of a document.
See