java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfAction
Deprecated.
A
PdfAction defines an action that can be triggered from a PDF file.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.A named action to go to the first page.static final intDeprecated.A named action to go to the last page.static final intDeprecated.A named action to go to the next page.static final intDeprecated.A named action to go to the previous page.static final intDeprecated.A named action to open a print dialog.static final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvaluestatic final intDeprecated.a possible submitvalue -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create an empty action.PdfAction(int named) Deprecated.Implements name actions.Deprecated.Constructs a newPdfActionof Subtype URI.Deprecated.Construct a newPdfActionof Subtype URI that accepts the x and y coordinate of the position that was clicked.Deprecated.Constructs a newPdfActionof Subtype GoToR.Deprecated.Constructs a newPdfActionof Subtype GoToR.Deprecated.Launches an application or a document.Deprecated.Constructs a newPdfActionof Subtype URI.Deprecated.Construct a newPdfActionof Subtype URI that accepts the x and y coordinate of the position that was clicked. -
Method Summary
Modifier and TypeMethodDescriptionstatic PdfActioncreateHide(PdfAnnotation annot, boolean hide) Deprecated.A Hide action hides or shows an annotation.static PdfActioncreateHide(Object[] names, boolean hide) Deprecated.A Hide action hides or shows objects.static PdfActioncreateHide(String name, boolean hide) Deprecated.A Hide action hides or shows an annotation.static PdfActioncreateImportData(String file) Deprecated.Creates an Import field.static PdfActioncreateLaunch(String application, String parameters, String operation, String defaultDir) Deprecated.Launches an application or a document.static PdfActioncreateResetForm(Object[] names, int flags) Deprecated.Creates a resetform.static PdfActioncreateSubmitForm(String file, Object[] names, int flags) Deprecated.Creates a submit form.static PdfActiongotoEmbedded(String filename, PdfTargetDictionary target, PdfObject dest, boolean newWindow) Deprecated.Creates a GoToE action to an embedded file.static PdfActiongotoEmbedded(String filename, PdfTargetDictionary target, String dest, boolean isName, boolean newWindow) Deprecated.Creates a GoToE action to an embedded file.static PdfActiongotoLocalPage(int page, PdfDestination dest, PdfWriter writer) Deprecated.Creates a GoTo action to an internal page.static PdfActiongotoLocalPage(String dest, boolean isName) Deprecated.Creates a GoTo action to a named destination.static PdfActiongotoRemotePage(String filename, String dest, boolean isName, boolean newWindow) Deprecated.Creates a GoToR action to a named destination.static PdfActionjavaScript(String code, PdfWriter writer) Deprecated.Creates a JavaScript action.static PdfActionjavaScript(String code, PdfWriter writer, boolean unicode) Deprecated.Creates a JavaScript action.voidDeprecated.Add a chained action.static PdfActionrendition(String file, PdfFileSpecification fs, String mimeType, PdfIndirectReference ref) Deprecated.Creates a Rendition actionstatic PdfActionsetOCGstate(List<Object> state, boolean preserveRB) Deprecated.A set-OCG-state action (PDF 1.5) sets the state of one or more optional content groups.Methods inherited from class com.lowagie.text.pdf.PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringMethods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
FIRSTPAGE
public static final int FIRSTPAGEDeprecated.A named action to go to the first page.- See Also:
-
PREVPAGE
public static final int PREVPAGEDeprecated.A named action to go to the previous page.- See Also:
-
NEXTPAGE
public static final int NEXTPAGEDeprecated.A named action to go to the next page.- See Also:
-
LASTPAGE
public static final int LASTPAGEDeprecated.A named action to go to the last page.- See Also:
-
PRINTDIALOG
public static final int PRINTDIALOGDeprecated.A named action to open a print dialog.- See Also:
-
SUBMIT_EXCLUDE
public static final int SUBMIT_EXCLUDEDeprecated.a possible submitvalue- See Also:
-
SUBMIT_INCLUDE_NO_VALUE_FIELDS
public static final int SUBMIT_INCLUDE_NO_VALUE_FIELDSDeprecated.a possible submitvalue- See Also:
-
SUBMIT_HTML_FORMAT
public static final int SUBMIT_HTML_FORMATDeprecated.a possible submitvalue- See Also:
-
SUBMIT_HTML_GET
public static final int SUBMIT_HTML_GETDeprecated.a possible submitvalue- See Also:
-
SUBMIT_COORDINATES
public static final int SUBMIT_COORDINATESDeprecated.a possible submitvalue- See Also:
-
SUBMIT_XFDF
public static final int SUBMIT_XFDFDeprecated.a possible submitvalue- See Also:
-
SUBMIT_INCLUDE_APPEND_SAVES
public static final int SUBMIT_INCLUDE_APPEND_SAVESDeprecated.a possible submitvalue- See Also:
-
SUBMIT_INCLUDE_ANNOTATIONS
public static final int SUBMIT_INCLUDE_ANNOTATIONSDeprecated.a possible submitvalue- See Also:
-
SUBMIT_PDF
public static final int SUBMIT_PDFDeprecated.a possible submitvalue- See Also:
-
SUBMIT_CANONICAL_FORMAT
public static final int SUBMIT_CANONICAL_FORMATDeprecated.a possible submitvalue- See Also:
-
SUBMIT_EXCL_NON_USER_ANNOTS
public static final int SUBMIT_EXCL_NON_USER_ANNOTSDeprecated.a possible submitvalue- See Also:
-
SUBMIT_EXCL_F_KEY
public static final int SUBMIT_EXCL_F_KEYDeprecated.a possible submitvalue- See Also:
-
SUBMIT_EMBED_FORM
public static final int SUBMIT_EMBED_FORMDeprecated.a possible submitvalue- See Also:
-
RESET_EXCLUDE
public static final int RESET_EXCLUDEDeprecated.a possible submitvalue- See Also:
-
-
Constructor Details
-
PdfAction
public PdfAction()Deprecated.Create an empty action. -
PdfAction
Deprecated.Constructs a newPdfActionof Subtype URI.- Parameters:
url- the Url to go to
-
PdfAction
Deprecated.Construct a newPdfActionof Subtype URI that accepts the x and y coordinate of the position that was clicked.- Parameters:
url- the URLisMap- true if it is a map, false otherwise
-
PdfAction
Deprecated.Constructs a newPdfActionof Subtype URI.- Parameters:
url- the url to go to
-
PdfAction
Deprecated.Construct a newPdfActionof Subtype URI that accepts the x and y coordinate of the position that was clicked.- Parameters:
url- the URLisMap- true if it is a map, false otherwise
-
PdfAction
Deprecated.Constructs a newPdfActionof Subtype GoToR.- Parameters:
filename- the file name to go toname- the named destination to go to
-
PdfAction
Deprecated.Constructs a newPdfActionof Subtype GoToR.- Parameters:
filename- the file name to go topage- the page destination to go to
-
PdfAction
public PdfAction(int named) Deprecated.Implements name actions. The action can be FIRSTPAGE, LASTPAGE, NEXTPAGE, PREVPAGE and PRINTDIALOG.- Parameters:
named- the named action
-
PdfAction
Deprecated.Launches an application or a document.- Parameters:
application- the application to be launched or the document to be opened or printed.parameters- (Windows-specific) A parameter string to be passed to the application. It can benull.operation- (Windows-specific) the operation to perform: "open" - Open a document, "print" - Print a document. It can benull.defaultDir- (Windows-specific) the default directory in standard DOS syntax. It can benull.
-
-
Method Details
-
createLaunch
public static PdfAction createLaunch(String application, String parameters, String operation, String defaultDir) Deprecated.Launches an application or a document.- Parameters:
application- the application to be launched or the document to be opened or printed.parameters- (Windows-specific) A parameter string to be passed to the application. It can benull.operation- (Windows-specific) the operation to perform: "open" - Open a document, "print" - Print a document. It can benull.defaultDir- (Windows-specific) the default directory in standard DOS syntax. It can benull.- Returns:
- a Launch action
-
rendition
public static PdfAction rendition(String file, PdfFileSpecification fs, String mimeType, PdfIndirectReference ref) throws IOException Deprecated.Creates a Rendition action- Parameters:
file- the name of the filefs- the PdfSpecificationmimeType- the mime typeref- the PdfIndirectReference- Returns:
- a Media Clip action
- Throws:
IOException- thrown when an I/O operation fails
-
javaScript
Deprecated.Creates a JavaScript action. If the JavaScript is smaller than 50 characters it will be placed as a string, otherwise it will be placed as a compressed stream.- Parameters:
code- the JavaScript codewriter- the writer for this actionunicode- select JavaScript unicode. Note that the internal Acrobat JavaScript engine does not support unicode, so this may or may not work for you- Returns:
- the JavaScript action
-
javaScript
Deprecated.Creates a JavaScript action. If the JavaScript is smaller than 50 characters it will be place as a string, otherwise it will be placed as a compressed stream.- Parameters:
code- the JavaScript codewriter- the writer for this action- Returns:
- the JavaScript action
-
createHide
Deprecated.A Hide action hides or shows an annotation.- Parameters:
annot- the annotation to hide or showhide- true is hide, false is show- Returns:
- A Hide Action
-
createHide
Deprecated.A Hide action hides or shows an annotation.- Parameters:
name- the name of the object to hide or showhide- true is hide, false is show- Returns:
- A Hide Action
-
createHide
Deprecated.A Hide action hides or shows objects.- Parameters:
names- Object array containing the Objects to hide or showhide- true is hide, false is show- Returns:
- A Hide Action
-
createSubmitForm
Deprecated.Creates a submit form.- Parameters:
file- the URI to submit the form tonames- the objects to submitflags- submit properties- Returns:
- A PdfAction
-
createResetForm
Deprecated.Creates a resetform.- Parameters:
names- the objects to resetflags- submit properties- Returns:
- A PdfAction
-
createImportData
Deprecated.Creates an Import field.- Parameters:
file- the name of the file- Returns:
- A PdfAction
-
gotoLocalPage
Deprecated.Creates a GoTo action to an internal page.- Parameters:
page- the page to go. First page is 1dest- the destination for the pagewriter- the writer for this action- Returns:
- a GoTo action
-
gotoLocalPage
Deprecated.Creates a GoTo action to a named destination.- Parameters:
dest- the named destinationisName- if true sets the destination as a name, if false sets it as a String- Returns:
- a GoTo action
-
gotoRemotePage
public static PdfAction gotoRemotePage(String filename, String dest, boolean isName, boolean newWindow) Deprecated.Creates a GoToR action to a named destination.- Parameters:
filename- the file name to go todest- the destination nameisName- if true sets the destination as a name, if false sets it as a StringnewWindow- open the document in a new window iftrue, if false the current document is replaced by the new document.- Returns:
- a GoToR action
-
gotoEmbedded
public static PdfAction gotoEmbedded(String filename, PdfTargetDictionary target, String dest, boolean isName, boolean newWindow) Deprecated.Creates a GoToE action to an embedded file.- Parameters:
filename- the root document of the target (null if the target is in the same document)target- a path to the target document of this actiondest- the named destinationisName- if true sets the destination as a name, if false sets it as a StringnewWindow- if true, the doc should be opened in a new window- Returns:
- a GoToE action
-
gotoEmbedded
public static PdfAction gotoEmbedded(String filename, PdfTargetDictionary target, PdfObject dest, boolean newWindow) Deprecated.Creates a GoToE action to an embedded file.- Parameters:
filename- the root document of the target (null if the target is in the same document)target- a path to the target document of this actiondest- the destination inside the target document, can be of type PdfDestination, PdfName, or PdfStringnewWindow- if true, the destination document should be opened in a new window- Returns:
- a GoToE action
-
setOCGstate
Deprecated.A set-OCG-state action (PDF 1.5) sets the state of one or more optional content groups.- Parameters:
state- an array consisting of any number of sequences beginning with aPdfNameorString(ON, OFF, or Toggle) followed by one or more optional content group dictionariesPdfLayeror aPdfIndirectReferenceto aPdfLayer.
The array elements are processed from left to right; each name is applied to the subsequent groups until the next name is encountered:- ON sets the state of subsequent groups to ON
- OFF sets the state of subsequent groups to OFF
- Toggle reverses the state of subsequent groups
preserveRB- iftrue, indicates that radio-button state relationships between optional content groups (as specified by the RBGroups entry in the current configuration dictionary) should be preserved when the states in thestatearray are applied. That is, if a group is set to ON (either by ON or Toggle) during processing of thestatearray, any other groups belong to the same radio-button group are turned OFF. If a group is set to OFF, there is no effect on other groups.
Iffalse, radio-button state relationships, if any, are ignored- Returns:
- the action
-
next
Deprecated.Add a chained action.- Parameters:
na- the next action
-