Skip to content

# PDFJavaScriptAction

Namespace: O2S.Components.PDF4NET.Actions

Defines a Javascript action.

    public class PDFJavaScriptAction : PDFAction

Inheritance Object → PDFAction → PDFJavaScriptAction

Remarks

A JavaScript action causes a script to be compiled and executed by the JavaScript interpreter.

## Constructors

### PDFJavaScriptAction()

Initializes a new PDFJavaScriptAction object.

    public PDFJavaScriptAction()

## Properties

### Actions

Gets or sets the sequence of actions to be performed after this action.

    public PDFActionCollection Actions { get; set; }

Property Value

PDFActionCollection
The sequence of actions to be performed after this action.

### CosAction

Gets the cos action object.

    public PDFCosDictionary CosAction { get; }

Property Value

PDFCosDictionary
The cos action dictionary.

Remarks

Direct changes to cos action dictionary can lead to unexpected results if they do not follow the PDF specification.

### Script

Gets or sets the JavaScript script to be executed.

    public string Script { get; set; }

Property Value

String
The JavaScript script to be executed.

### Type

Gets the type of this action.

    public PDFActionType Type { get; }

Property Value

PDFActionType
A PDFActionType enum member specifying the type of this action.