Class PDWindowsLaunchParams
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.action.PDWindowsLaunchParams
- All Implemented Interfaces:
COSObjectable
Launch parameters for the windows OS.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The open operation for the launch.static final String
The print operation for the launch.protected COSDictionary
The params dictionary. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionConvert this standard java object to a COS object.The dir to launch from.A parameter to pass the executable.The file to launch.Get the operation to perform on the file.void
setDirectory
(String dir) Set the dir to launch from.void
setExecuteParam
(String param) Set the parameter to pass the executable.void
setFilename
(String file) Set the file to launch.void
setOperation
(String op) Set the operation to perform..
-
Field Details
-
OPERATION_OPEN
The open operation for the launch.- See Also:
-
OPERATION_PRINT
The print operation for the launch.- See Also:
-
params
The params dictionary.
-
-
Constructor Details
-
PDWindowsLaunchParams
public PDWindowsLaunchParams()Default constructor. -
PDWindowsLaunchParams
Constructor.- Parameters:
p
- The params dictionary.
-
-
Method Details
-
getCOSObject
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getFilename
The file to launch.- Returns:
- The executable/document to launch.
-
setFilename
Set the file to launch.- Parameters:
file
- The executable/document to launch.
-
getDirectory
The dir to launch from.- Returns:
- The dir of the executable/document to launch.
-
setDirectory
Set the dir to launch from.- Parameters:
dir
- The dir of the executable/document to launch.
-
getOperation
Get the operation to perform on the file. This method will not return null, OPERATION_OPEN is the default.- Returns:
- The operation to perform for the file.
- See Also:
-
setOperation
Set the operation to perform..- Parameters:
op
- The operation to perform on the file.
-
getExecuteParam
A parameter to pass the executable.- Returns:
- The parameter to pass the executable.
-
setExecuteParam
Set the parameter to pass the executable.- Parameters:
param
- The parameter for the executable.
-