Class: NamedAction

PSPDFKit.Actions.NamedAction

PDF action to trigger a named action. This action is not implemented yet.

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

Constructor

new PSPDFKit.Actions.NamedAction(args)

Trigger a named action.

Parameters:
Name Type Description
args object
Example

Create a new NamedAction

var action = new PSPDFKit.Actions.NamedAction({ action: "nextPage" });

Extends

Members




Members

action: string

The name of the action. This includes but is not limited to the following actions:

  • nextPage
  • prevPage
  • firstPage
  • lastPage
  • goBack
  • goForward
  • goToPage
  • find
  • print
  • outline
  • search
  • brightness
  • zoomIn
  • zoomOut
  • saveAs
  • info
Type:
  • string

subActions: PSPDFKit.Immutable.List.<Action>

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

Type: