LaunchAction
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.PdfAction
public final class LaunchAction extends PdfAction
Represents a launch action that launches an application or opens or prints a document.
Constructors
| Constructor | Description |
|---|---|
| LaunchAction(String file) | Creates a launch action. |
| LaunchAction(IDocument document, String file) | Creates a launch action. |
Methods
| Method | Description |
|---|---|
| getFile() | Gets the application to be launched or the document to be opened or printed. |
| setFile(String value) | Sets the application to be launched or the document to be opened or printed. |
| getNewWindow() | Gets a flag specifying whether to open the destination document in a new window (affect PDF documents only). |
| setNewWindow(int value) | Sets a flag specifying whether to open the destination document in a new window (affect PDF documents only). |
LaunchAction(String file)
public LaunchAction(String file)
Creates a launch action.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| file | java.lang.String | The file to be launched. |
LaunchAction(IDocument document, String file)
public LaunchAction(IDocument document, String file)
Creates a launch action.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| document | IDocument | Document where action will be created. |
| file | java.lang.String | The file to be launched. |
getFile()
public String getFile()
Gets the application to be launched or the document to be opened or printed.
Returns: java.lang.String - String value
setFile(String value)
public void setFile(String value)
Sets the application to be launched or the document to be opened or printed.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | String value |
getNewWindow()
public int getNewWindow()
Gets a flag specifying whether to open the destination document in a new window (affect PDF documents only).
Returns: int - ExtendedBoolean element
setNewWindow(int value)
public void setNewWindow(int value)
Sets a flag specifying whether to open the destination document in a new window (affect PDF documents only). ExtendedBoolean
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | ExtendedBoolean element |