LaunchAction

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

ConstructorDescription
LaunchAction(String file)Creates a launch action.
LaunchAction(IDocument document, String file)Creates a launch action.

Methods

MethodDescription
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:

ParameterTypeDescription
filejava.lang.StringThe file to be launched.

LaunchAction(IDocument document, String file)

public LaunchAction(IDocument document, String file)

Creates a launch action.

Parameters:

ParameterTypeDescription
documentIDocumentDocument where action will be created.
filejava.lang.StringThe 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:

ParameterTypeDescription
valuejava.lang.StringString 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:

ParameterTypeDescription
valueintExtendedBoolean element