Skip to content

# PDFLaunchAction

Namespace: O2S.Components.PDF4NET.Actions

Defines Launch action.

    public class PDFLaunchAction : PDFAction

Inheritance Object → PDFAction → PDFLaunchAction

Remarks

A launch action launches an application or opens or prints a document.

## Constructors

### PDFLaunchAction()

Initializes a new PDFLaunchAction object.

    public PDFLaunchAction()

## 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.

### FileName

Gets or sets the application to be launched or the document to be opened or printed.

    public string FileName { get; set; }

Property Value

String
The application to be launched or the document to be opened or printed.

### NewWindow

Gets or sets a value indicating whether to open the destination document in a new window.

    public bool NewWindow { get; set; }

Property Value

Boolean
A bool value specifying whether to open the destination document in a new window. If this property is false, the destination document replaces the current document in the same window.

### Parameters

Gets or sets a parameter string to be passed to the application designated by the PDFLaunchAction.FileName property.

    public string Parameters { get; set; }

Property Value

String
A parameter string to be passed to the application designated by the PDFLaunchAction.FileName property.

### Type

Gets the type of this action.

    public PDFActionType Type { get; }

Property Value

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