Nutrient Web SDK
    Preparing search index...

    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.open to 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.

    const newWindow = window.open(action.uri, "_blank");
    newWindow.opener = null;

    Learn more about the security problems when using _blank in this article from JitBit.

    Please refer to the individual browser documentations for a lists of supported URI protocols. The most used protocols (http, https and mailto) are supported in all supported browsers.

    Create a new URIAction

    const action = new NutrientViewer.Actions.URIAction({ uri: "https://www.nutrient.io" });
    

    Hierarchy

    Index

    Constructors

    Properties

    Actions can be chained by adding them to this immutable List.

    uri: string

    The uniform resource identifier (web link) that should be resolved when triggering this action.

    Methods

    • Type Parameters

      • K extends "subActions"

      Parameters

      • key: K

      Returns this

    • Parameters

      • other: unknown

      Returns boolean

    • Parameters

      • keyPath: Iterable<unknown>
      • OptionalnotSetValue: unknown

      Returns unknown

    • Parameters

      • key: unknown

      Returns boolean

    • Parameters

      Returns this

    • Parameters

      Returns this

    • Parameters

      • keyPath: Iterable<unknown>
      • value: unknown

      Returns this

    • Returns Keyed<string, unknown>

    • Parameters

      • keyPath: Iterable<unknown>
      • notSetValue: unknown
      • updater: (value: unknown) => unknown

      Returns this

    • Parameters

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

      Returns this

    • Parameters

      • mutator: (mutable: this) => unknown

      Returns this