LaunchAction
Overview
LaunchAction is a class in Aspose.Pdf FOSS for Java.
Inherits from: PdfAction.
Launch action — launches an application or opens a document (ISO 32000-1:2008, §12.6.4.1).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
file | String | Read | Returns the file path or specification. |
newWindow | boolean | Read | Returns whether a new window should be opened. |
cOSDictionary | COSDictionary | Read | Returns the underlying action dictionary. |
type | String | Read | Returns the action type (/S entry). |
next | PdfAction | Read | Returns the next action (/Next), if any. |
Methods
| Signature | Description |
|---|---|
LaunchAction(dict: COSDictionary) | Parses a LaunchAction from an existing dictionary. |
LaunchAction(filePath: String) | Creates a LaunchAction for the given file path. |
getFile() → String | Returns the file path or specification. |
isNewWindow() → boolean | Returns whether a new window should be opened. |
setNewWindow(newWindow: boolean) | Sets whether a new window should be opened. |
getCOSDictionary() → COSDictionary | Returns the underlying action dictionary. |
getType() → String | Returns the action type (/S entry). |
getNext() → PdfAction | Returns the next action (/Next), if any. |
fromDictionary(dict: COSDictionary, doc: Document) → PdfAction | Factory: creates the appropriate PdfAction subclass from a dictionary. |