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 PDFAction
PDFAction. formImportData(String file)
Return a newPDFAction
which imports a Forms Data Format (FDF) file into the document AcroForm, setting some or all of the forms values.static PDFAction
PDFAction. formJavaScript(String javascript)
Return a newPDFAction
which executes a JavaScript action.static PDFAction
PDFAction. formReset()
Return a newPDFAction
which resets the documents AcroForm, setting every field to its default values.static PDFAction
PDFAction. formReset(Collection<FormElement> fields)
Return a newPDFAction
which resets the specified fields in the documents AcroForm, setting them field to their default value.static PDFAction
PDFAction. formSubmit(String url, int method)
Return a new PDFAction which submits the documents AcroForm.static PDFAction
PDFAction. formSubmit(String url, int method, Collection<FormElement> fields)
Return a new PDFAction which submits the documents AcroForm.PDFAction
AnnotationLink. getAction()
Return the action performed by this hyperlinkPDFAction
FormElement. getAction(Event event)
Get the action that's performed when the specified event takes place on this field.PDFAction
PDF. getAction(Event event)
Return the action that's performed when the specified event occurs on the document, as set bysetAction
.PDFAction
PDFAnnotation. 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.PDFAction
PDFBookmark. getAction()
Get the action this bookmark performs when selectedPDFAction
PDFPage. getAction(Event event)
Get the action that's perform when this page is displayed.PDFAction
WidgetAnnotation. getAction(Event event)
Return the action that occurs when the specified event happens to this annotation.PDFAction
PDFAction. getNext()
Return the action that's next in the chain after this one, ornull
if no further actions are defined.static PDFAction
PDFAction. goTo(PDFPage page)
Return a new PDFAction which jumps to the specified page in the PDF document.static PDFAction
PDFAction. 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 PDFAction
PDFAction. 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 PDFAction
PDFAction. goToEmbedded(String path, int page, float x, float y, float zoom)
Create an "embedded" link.static PDFAction
PDFAction. goToFit(PDFPage page)
Return a new PDFAction which jumps to the specified page in the PDF document.static PDFAction
PDFAction. goToFitHeight(PDFPage page, float x)
Return a new PDFAction which jumps to the specified page in the PDF document.static PDFAction
PDFAction. 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 PDFAction
PDFAction. 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 PDFAction
PDFAction. goToFitWidth(PDFPage page, float y)
Return a new PDFAction which jumps to the specified page in the PDF document.static PDFAction
PDFAction. 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 PDFAction
PDFAction. 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 PDFAction
PDFAction. goToURL(String url)
Return a new PDFAction which jumps to the specified URL.static PDFAction
PDFAction. goToURL(URI uri, boolean isImageMap)
Return a new PDFAction which jumps to the specified URI.static PDFAction
PDFAction. goToURL(URL url)
Return a new PDFAction which jumps to the specified URL.static PDFAction
PDFAction. goToURL(URL url, boolean isImageMap)
Return a new PDFAction which jumps to the specified URL.static PDFAction
PDFAction. hideWidget(WidgetAnnotation annot)
Return a new PDFAction which hides the specifiedWidgetAnnotation
.static PDFAction
PDFAction. launch(String filename, String newwindow)
Create a "Launch" action.static PDFAction
PDFAction. launch(EmbeddedFile ef, String newwindow)
Create a "Launch" action to open an embedded file.static PDFAction
PDFAction. named(String name)
Return a new PDFAction which runs the named action.static PDFAction
PDFAction. playSound(PDFSound s)
Return a new PDFAction which plays aPDFSound
when activated.static PDFAction
PDFAction. playSound(PDFSound sound, int volume, boolean repeat, boolean mix)
Return a new PDFAction which plays aPDFSound
when activated.static PDFAction
PDFAction. showOptionalContent(Map<OptionalContentLayer,OptionalContentLayer.When> map, boolean preserveRadioButtons)
Set the visibility of the specifiedOptionalContentLayer
objects 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 PDFAction
PDFAction. showWidget(WidgetAnnotation annot)
Return a new PDFAction which makes the specifiedWidgetAnnotation
visible on screen.PDFAction
PDFAction. toEmbedded(String path)
If this action is a GoTo type action, return an equivalent GoToE(mbedded) action that is its equivalent 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 void
PDFPage. beginTextLink(PDFAction action, PDFStyle linkstyle)
Start a "link" section in the text.void
PDFPage. 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.void
AnnotationLink. setAction(PDFAction action)
Set the action for this hyperlinkvoid
FormElement. setAction(Event event, PDFAction action)
Set the action to perform when the specified event takes place on this field.void
PDF. setAction(Event event, PDFAction action)
Specify an action to perform when the specified event occurs on the document.void
PDFAnnotation. setAction(Event event, PDFAction action)
Set an action to occur when the specified event happens to this annotation.void
PDFBookmark. setAction(PDFAction action)
Set the action this bookmark performs when selectedvoid
PDFPage. setAction(Event event, PDFAction action)
Set the action to perform when the specified event occurs.void
WidgetAnnotation. setAction(Event event, PDFAction action)
Set an action to occur when the specified event happens to this annotation.void
PDFAction. setNext(PDFAction action)
ThesetNext
method 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 boolean
ActionHandler. matches(DocumentPanel panel, PDFAction action)
Return true if this ActionFactory can handle the specifiedPDFAction
abstract void
ActionHandler. run(DocumentPanel panel, PDFAction action)
Run the specified actionboolean
DocumentPanel. 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 boolean
FormImportDataActionHandler. matches(DocumentPanel panel, PDFAction action)
boolean
FormResetActionHandler. matches(DocumentPanel panel, PDFAction action)
boolean
FormSubmitActionHandler. matches(DocumentPanel panel, PDFAction action)
boolean
GenericNamedActionHandler. matches(DocumentPanel panel, PDFAction action)
boolean
GoToActionHandler. matches(DocumentPanel panel, PDFAction action)
boolean
ShowHideActionHandler. matches(DocumentPanel panel, PDFAction action)
boolean
SoundActionHandler. matches(DocumentPanel panel, PDFAction action)
boolean
URLActionHandler. matches(DocumentPanel panel, PDFAction action)
void
FormImportDataActionHandler. run(DocumentPanel docpanel, PDFAction action)
void
FormResetActionHandler. run(DocumentPanel docpanel, PDFAction action)
void
FormSubmitActionHandler. run(DocumentPanel docpanel, PDFAction action)
void
GenericNamedActionHandler. run(DocumentPanel docpanel, PDFAction action)
void
GoToActionHandler. run(DocumentPanel docpanel, PDFAction action)
void
ShowHideActionHandler. run(DocumentPanel docpanel, PDFAction action)
void
SoundActionHandler. run(DocumentPanel docpanel, PDFAction action)
void
URLActionHandler. run(DocumentPanel panel, PDFAction action)
-