Class PdfAction
java.lang.Object
com.aowagie.text.pdf.PdfObject
com.aowagie.text.pdf.PdfDictionary
com.aowagie.text.pdf.PdfAction
A
PdfAction defines an action that can be triggered from a PDF file.- See Also:
-
Field Summary
Fields inherited from class PdfDictionary
hashMap -
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty action.PdfAction(int named) Implements name actions.Constructs a newPdfActionof Subtype URI.Constructs a newPdfActionof Subtype GoToR.Constructs a newPdfActionof Subtype GoToR.Launches an application or a document.Constructs a newPdfActionof Subtype URI. -
Method Summary
Methods inherited from class PdfDictionary
get, getAsArray, getAsDict, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, put, remove, size, toPdf, toStringMethods inherited from class PdfObject
getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, type
-
Constructor Details
-
PdfAction
public PdfAction()Create an empty action. -
PdfAction
Constructs a newPdfActionof Subtype URI.- Parameters:
url- the Url to go to
-
PdfAction
Constructs a newPdfActionof Subtype URI.- Parameters:
url- the url to go to
-
PdfAction
-
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
-
PdfAction
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.
-