Uses of Class
org.faceless.pdf2.PDFAction
-
Packages that use PDFAction Package Description org.faceless.pdf2 Contains the classes used to create a PDF documentorg.faceless.pdf2.viewer2 The "viewer" package contains the classes required to create a Swing application to display PDFs.org.faceless.pdf2.viewer2.feature Contains a list of all the features that are available to the PDFViewer. -
-
Uses of PDFAction in org.faceless.pdf2
Methods in org.faceless.pdf2 that return PDFAction Modifier and Type Method Description static PDFActionPDFAction. formImportData(String file)Return a newPDFActionwhich imports a Forms Data Format (FDF) file into the document AcroForm, setting some or all of the forms values.static PDFActionPDFAction. formJavaScript(String javascript)Return a newPDFActionwhich executes a JavaScript action.static PDFActionPDFAction. formReset()Return a newPDFActionwhich resets the documents AcroForm, setting every field to its default values.static PDFActionPDFAction. formReset(Collection<FormElement> fields)Return a newPDFActionwhich resets the specified fields in the documents AcroForm, setting them field to their default value.static PDFActionPDFAction. formSubmit(String url, int method)Return a new PDFAction which submits the documents AcroForm.static PDFActionPDFAction. formSubmit(String url, int method, Collection<FormElement> fields)Return a new PDFAction which submits the documents AcroForm.static PDFActionPDFAction. fromPath(String fullpath, PDF pdf)Create an action based on a full-path consisting of:PDFActionAnnotationLink. getAction()Return the action performed by this hyperlinkPDFActionFormElement. getAction(Event event)Get the action that's performed when the specified event takes place on this field.PDFActionPDF. getAction(Event event)Return the action that's performed when the specified event occurs on the document, as set bysetAction.PDFActionPDFAnnotation. getAction(Event event)Return the action assocaited with this event, as set byPDFAnnotation.setAction(org.faceless.pdf2.Event, org.faceless.pdf2.PDFAction), or null if its unset.PDFActionPDFBookmark. getAction()Get the action this bookmark performs when selectedPDFActionPDFPage. getAction(Event event)Get the action that's perform when this page is displayed.PDFActionWidgetAnnotation. getAction(Event event)Return the action that occurs when the specified event happens to this annotation.PDFActionPDFAction. getNext()Return the action that's next in the chain after this one, ornullif no further actions are defined.static PDFActionPDFAction. goTo(PDFPage page)Return a new PDFAction which jumps to the specified page in the PDF document.static PDFActionPDFAction. goTo(PDFPage page, float x, float y, float zoom)Return a new PDFAction which jumps to the specified page in the PDF document, at the specified x, y and zoom level.static PDFActionPDFAction. goTo(Element elt, float x, float y, float zoom)Return a new PDFAction which jumps to the page containing the specified element from theStructureTree.static PDFActionPDFAction. goToEmbedded(String path, int page, float x, float y, float zoom)Create an "embedded" link.static PDFActionPDFAction. goToFit(PDFPage page)Return a new PDFAction which jumps to the specified page in the PDF document.static PDFActionPDFAction. goToFitHeight(PDFPage page, float x)Return a new PDFAction which jumps to the specified page in the PDF document.static PDFActionPDFAction. goToFitRectangle(PDFPage page, float x1, float y1, float x2, float y2)Return a new PDFAction which jumps to the specified page in the PDF document.static PDFActionPDFAction. goToFitRemoteRectangle(String filename, int pagenumber, float left, float bottom, float width, float height)As forgoToFitRectangle(org.faceless.pdf2.PDFPage, float, float, float, float), but returns a new PDFAction which moves to a page in another PDF.static PDFActionPDFAction. goToFitWidth(PDFPage page, float y)Return a new PDFAction which jumps to the specified page in the PDF document.static PDFActionPDFAction. goToRemote(String filename, int pagenumber, float x, float y, float zoom)As forgoTo(org.faceless.pdf2.PDFPage), but returns a new PDFAction which moves to a page in another PDF.static PDFActionPDFAction. goToRemote(String filename, int pagenumber, float x, float y, float zoom, String newwindow)As forgoTo(org.faceless.pdf2.PDFPage), but returns a new PDFAction which moves to a page in another PDF.static PDFActionPDFAction. goToURL(String url)Return a new PDFAction which jumps to the specified URL.static PDFActionPDFAction. goToURL(URI uri, boolean isImageMap)Return a new PDFAction which jumps to the specified URI.static PDFActionPDFAction. goToURL(URL url)Return a new PDFAction which jumps to the specified URL.static PDFActionPDFAction. goToURL(URL url, boolean isImageMap)Return a new PDFAction which jumps to the specified URL.static PDFActionPDFAction. hideWidget(WidgetAnnotation annot)Return a new PDFAction which hides the specifiedWidgetAnnotation.static PDFActionPDFAction. launch(String filename, String newwindow)Create a "Launch" action.static PDFActionPDFAction. launch(EmbeddedFile ef, String newwindow)Create a "Launch" action to open an embedded file.static PDFActionPDFAction. named(String name)Return a new PDFAction which runs the named action.static PDFActionPDFAction. playSound(PDFSound s)Return a new PDFAction which plays aPDFSoundwhen activated.static PDFActionPDFAction. playSound(PDFSound sound, int volume, boolean repeat, boolean mix)Return a new PDFAction which plays aPDFSoundwhen activated.static PDFActionPDFAction. showOptionalContent(Map<OptionalContentLayer,OptionalContentLayer.When> map, boolean preserveRadioButtons)Set the visibility of the specifiedOptionalContentLayerobjects to on (OptionalContentLayer.When.Always), off (OptionalContentLayer.When.Never) or "toggle" (OptionalContentLayer.When.Always), where the current state will be changed between off and onstatic PDFActionPDFAction. showWidget(WidgetAnnotation annot)Return a new PDFAction which makes the specifiedWidgetAnnotationvisible on screen.PDFActionPDFAction. toEmbedded(String path)If this action is a GoTo type action, return an equivalent GoToE(mbedded) action to use if the PDF was embedded at the specified path.Methods in org.faceless.pdf2 that return types with arguments of type PDFAction Modifier and Type Method Description Map<String,PDFAction>PDF. getNamedActions()Return a Map containing all the named actions in the PDF.Methods in org.faceless.pdf2 with parameters of type PDFAction Modifier and Type Method Description voidPDFPage. beginTextLink(PDFAction action, PDFStyle linkstyle)Start a "link" section in the text.voidPDFPage. drawTextLink(String text, float x, float y, PDFAction action)Draw a line of text at a the specified position, and set it to link to the specified action.voidAnnotationLink. setAction(PDFAction action)Set the action for this hyperlinkvoidFormElement. setAction(Event event, PDFAction action)Set the action to perform when the specified event takes place on this field.voidPDF. setAction(Event event, PDFAction action)Specify an action to perform when the specified event occurs on the document.voidPDFAnnotation. setAction(Event event, PDFAction action)Set an action to occur when the specified event happens to this annotation.voidPDFBookmark. setAction(PDFAction action)Set the action this bookmark performs when selectedvoidPDFPage. setAction(Event event, PDFAction action)Set the action to perform when the specified event occurs.voidWidgetAnnotation. setAction(Event event, PDFAction action)Set an action to occur when the specified event happens to this annotation.voidPDFAction. setNext(PDFAction action)ThesetNextmethod allows you to create "chains" of actions which are executed whenever the first entry in the chain is run.Constructors in org.faceless.pdf2 with parameters of type PDFAction Constructor Description PDFBookmark(String name, PDFAction action)Create a new bookmark with an initial state of "closed".PDFBookmark(String name, PDFAction action, boolean open)Create a new bookmark and set the initial state to "open" or "closed" -
Uses of PDFAction in org.faceless.pdf2.viewer2
Methods in org.faceless.pdf2.viewer2 with parameters of type PDFAction Modifier and Type Method Description abstract booleanActionHandler. matches(DocumentPanel panel, PDFAction action)Return true if this ActionFactory can handle the specifiedPDFActionabstract voidActionHandler. run(DocumentPanel panel, PDFAction action)Run the specified actionbooleanDocumentPanel. runAction(PDFAction action)Run the specified action on the PDF. -
Uses of PDFAction in org.faceless.pdf2.viewer2.feature
Methods in org.faceless.pdf2.viewer2.feature with parameters of type PDFAction Modifier and Type Method Description booleanFormImportDataActionHandler. matches(DocumentPanel panel, PDFAction action)booleanFormResetActionHandler. matches(DocumentPanel panel, PDFAction action)booleanFormSubmitActionHandler. matches(DocumentPanel panel, PDFAction action)booleanGenericNamedActionHandler. matches(DocumentPanel panel, PDFAction action)booleanGoToActionHandler. matches(DocumentPanel panel, PDFAction action)booleanShowHideActionHandler. matches(DocumentPanel panel, PDFAction action)booleanSoundActionHandler. matches(DocumentPanel panel, PDFAction action)booleanURLActionHandler. matches(DocumentPanel panel, PDFAction action)voidFormImportDataActionHandler. run(DocumentPanel docpanel, PDFAction action)voidFormResetActionHandler. run(DocumentPanel docpanel, PDFAction action)voidFormSubmitActionHandler. run(DocumentPanel docpanel, PDFAction action)voidGenericNamedActionHandler. run(DocumentPanel docpanel, PDFAction action)voidGoToActionHandler. run(DocumentPanel docpanel, PDFAction action)voidShowHideActionHandler. run(DocumentPanel docpanel, PDFAction action)voidSoundActionHandler. run(DocumentPanel docpanel, PDFAction action)voidURLActionHandler. run(DocumentPanel panel, PDFAction action)
-