java.lang.Object
org.sejda.sambox.pdmodel.interactive.action.PDAction
org.sejda.sambox.pdmodel.interactive.action.PDActionLaunch
- All Implemented Interfaces:
COSObjectable,PDDestinationOrAction
This represents a launch action that can be executed in a PDF document.
- Author:
- Ben Litchfield, Panagiotis Toumasis
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetD()This will get the string specifying the default directory in standard DOS syntax.getF()This will get the file name to be launched or the document to be opened or printed, in standard Windows pathname format.getFile()This will get the application to be launched or the document to be opened or printed.getO()This will get the string specifying the operation to perform: open to open a document print to print a document If the F entry designates an application instead of a document, this entry is ignored and the application is launched.This will specify whether to open the destination document in a new window, in the same window, or behave in accordance with the current user preference.getP()This will get a parameter string to be passed to the application designated by the F entry.This will get a dictionary containing Windows-specific launch parameters.voidThis will set the string specifying the default directory in standard DOS syntax.voidThis will set the file name to be launched or the document to be opened or printed, in standard Windows pathname format.voidThis will set the application to be launched or the document to be opened or printed.voidThis will set the string specifying the operation to perform: open to open a document print to print a document If the F entry designates an application instead of a document, this entry is ignored and the application is launched.voidsetOpenInNewWindow(OpenMode value) This will specify whether to open the destination document in a new window.voidThis will set a parameter string to be passed to the application designated by the F entry.voidThis will set a dictionary containing Windows-specific launch parameters.Methods inherited from class org.sejda.sambox.pdmodel.interactive.action.PDAction
getCOSObject, getNext, getSubType, getType, setNext, setSubType, setType
-
Field Details
-
SUB_TYPE
This type of action this object represents.- See Also:
-
-
Constructor Details
-
PDActionLaunch
public PDActionLaunch()Default constructor. -
PDActionLaunch
Constructor.- Parameters:
a- The action dictionary.
-
-
Method Details
-
getFile
This will get the application to be launched or the document to be opened or printed. It is required if none of the entries Win, Mac or Unix is present. If this entry is absent and the viewer application does not understand any of the alternative entries it should do nothing.- Returns:
- The F entry of the specific launch action dictionary.
-
setFile
This will set the application to be launched or the document to be opened or printed. It is required if none of the entries Win, Mac or Unix is present. If this entry is absent and the viewer application does not understand any of the alternative entries it should do nothing.- Parameters:
fs- The file specification.
-
getWinLaunchParams
This will get a dictionary containing Windows-specific launch parameters.- Returns:
- The Win entry of of the specific launch action dictionary.
-
setWinLaunchParams
This will set a dictionary containing Windows-specific launch parameters.- Parameters:
win- The action to be performed.
-
getF
This will get the file name to be launched or the document to be opened or printed, in standard Windows pathname format. If the name string includes a backslash character (\), the backslash must itself be preceded by a backslash. This value must be a single string; it is not a file specification.- Returns:
- The F entry of the specific Windows launch parameter dictionary.
-
setF
This will set the file name to be launched or the document to be opened or printed, in standard Windows pathname format. If the name string includes a backslash character (\), the backslash must itself be preceded by a backslash. This value must be a single string; it is not a file specification.- Parameters:
f- The file name to be launched.
-
getD
This will get the string specifying the default directory in standard DOS syntax.- Returns:
- The D entry of the specific Windows launch parameter dictionary.
-
setD
This will set the string specifying the default directory in standard DOS syntax.- Parameters:
d- The default directory.
-
getO
This will get the string specifying the operation to perform: open to open a document print to print a document If the F entry designates an application instead of a document, this entry is ignored and the application is launched. Default value: open.- Returns:
- The O entry of the specific Windows launch parameter dictionary.
-
setO
This will set the string specifying the operation to perform: open to open a document print to print a document If the F entry designates an application instead of a document, this entry is ignored and the application is launched. Default value: open.- Parameters:
o- The operation to perform.
-
getP
This will get a parameter string to be passed to the application designated by the F entry. This entry should be omitted if F designates a document.- Returns:
- The P entry of the specific Windows launch parameter dictionary.
-
setP
This will set a parameter string to be passed to the application designated by the F entry. This entry should be omitted if F designates a document.- Parameters:
p- The parameter string.
-
getOpenInNewWindow
This will specify whether to open the destination document in a new window, in the same window, or behave in accordance with the current user preference.- Returns:
- A flag specifying how to open the destination document.
-
setOpenInNewWindow
This will specify whether to open the destination document in a new window.- Parameters:
value- The flag value.
-