Package org.openpdf.text.pdf
Class PdfAction
java.lang.Object
org.openpdf.text.pdf.PdfObject
org.openpdf.text.pdf.PdfDictionary
org.openpdf.text.pdf.PdfAction
A
PdfAction defines an action that can be triggered from a PDF file.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA named action to go to the first page.static final intA named action to go to the last page.static final intA named action to go to the next page.static final intA named action to go to the previous page.static final intA named action to open a print dialog.Fields inherited from class org.openpdf.text.pdf.PdfDictionary
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGESFields inherited from class org.openpdf.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type -
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty action.PdfAction(int named) Implements name actions.Constructs a newPdfActionof Subtype URI.Construct a newPdfActionof Subtype URI that accepts the x and y coordinate of the position that was clicked.Constructs a newPdfActionof Subtype GoToR.Constructs a newPdfActionof Subtype GoToR.Constructs a newPdfActionof Subtype URI.Construct a newPdfActionof Subtype URI that accepts the x and y coordinate of the position that was clicked. -
Method Summary
Methods inherited from class org.openpdf.text.pdf.PdfDictionary
contains, get, getAsDict, getDirectObject, getKeys, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringMethods inherited from class org.openpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, isArray, isDictionary, isName, isNull, isNumber, isString, setContent, type
-
Field Details
-
FIRSTPAGE
public static final int FIRSTPAGEA named action to go to the first page.- See Also:
-
PREVPAGE
public static final int PREVPAGEA named action to go to the previous page.- See Also:
-
NEXTPAGE
public static final int NEXTPAGEA named action to go to the next page.- See Also:
-
LASTPAGE
public static final int LASTPAGEA named action to go to the last page.- See Also:
-
PRINTDIALOG
public static final int PRINTDIALOGA named action to open a print dialog.- See Also:
-
-
Constructor Details
-
PdfAction
public PdfAction()Create an empty action. -
PdfAction
Constructs a newPdfActionof Subtype URI.- Parameters:
url- the Url to go to
-
PdfAction
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
Constructs a newPdfActionof Subtype URI.- Parameters:
url- the url to go to
-
PdfAction
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
Constructs a newPdfActionof Subtype GoToR.- Parameters:
filename- the file name to go toname- the named destination to go to
-
PdfAction
Constructs a newPdfActionof Subtype GoToR.- Parameters:
filename- the file name to go topage- the page destination to go to
-
PdfAction
public PdfAction(int named) Implements name actions. The action can be FIRSTPAGE, LASTPAGE, NEXTPAGE, PREVPAGE and PRINTDIALOG.- Parameters:
named- the named action
-