Class: JavaScriptAction

PSPDFKit.Actions.JavaScriptAction

PDF action to run arbitrary JavaScript. This action is not implemented yet.

It is an Immutable.Record and thus can be updated using set(key, value), for example: action.set("script", "alert(...)");.

Constructor

new PSPDFKit.Actions.JavaScriptAction(args)

Run arbitrary JavaScript.

Parameters:
Name Type Description
args Object
Example

Create a new JavaScriptAction

const action = new PSPDFKit.Actions.JavaScriptAction({
  script: "alert(...)"
});

Extends

Members




Members

script: string

The JavaScript to run.

Type:
  • string