Optionalargs: { uri?: string } & {Optionaluri?: stringThe uniform resource identifier (web link) that should be resolved when triggering this action.
OptionalsubActions?: NutrientViewer.Immutable.List<NutrientViewer.Actions.Action> | nullOptionalsubActions can be chained by adding them to this immutable List.
The uniform resource identifier (web link) that should be resolved when triggering this action.
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: unknownDeeply 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.
Shallowly converts this Record to equivalent native JavaScript Object.
PDF action resolve a uniform resource identifier (web link).
It is an Immutable.Record and thus can be updated using
set(key, value), for example:action.set("uri", "https://www.nutrient.io");.A URI action contains an URI. When executing this annotation, we use
window.opento create a new browser tab. We also clear the opener as a security measurement to avoid the target page to have access to your PDF state.Learn more about the security problems when using
_blankin this article from JitBit.Please refer to the individual browser documentations for a lists of supported URI protocols. The most used protocols (
http,httpsandmailto) are supported in all supported browsers.Example
Create a new URIAction