Skip to content

PDFAction

Namespace: O2S.Components.PDF4NET.Actions

Defines an abstract PDF action.

public class PDFAction

Inheritance ObjectPDFAction

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.


Type

Gets the type of this action.

public PDFActionType Type { get; }

Property Value

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


Methods

CreateAction(PDFCosDictionary)

Creates a PDF action from a cos dictionary.

public static PDFAction CreateAction(PDFCosDictionary cosAction)

Parameters

cosAction PDFCosDictionary
The action represented as a cos dictionary.

Returns

PDFAction
A PDFAction descendant if the action is recognized, otherwise null.


CreateAction(PDFCosDictionary, Dictionary<PDFCosDictionary, PDFAction>)

Creates a PDF action from a cos dictionary.

public static PDFAction CreateAction(PDFCosDictionary cosAction, Dictionary<PDFCosDictionary, PDFAction> processedActions)

Parameters

cosAction PDFCosDictionary
The action represented as a cos dictionary.

processedActions Dictionary<PDFCosDictionary, PDFAction>

Returns

PDFAction
A PDFAction descendant if the action is recognized, otherwise null.