public class Action
extends java.lang.Object
Also, with a PDF Viewer a PDF file can have an Action that runs automatically when a user opens the file, or reaches a specific page.
Applications can support Actions in custom annotation types they add. Only GoTo and URI Actions are supported; you can only use an Action with the interface to move from one part of a file to another or open an external web page.
| Constructor and Description |
|---|
Action(Document doc,
java.lang.String type)
Creates a new action object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
equals(java.lang.Object rhs) |
PDFDict |
getPDFDict()
Retrieve the PDFObject representation of this object
|
java.lang.String |
getSubtype()
The action's subtype
|
java.lang.String |
toString() |
public Action(Document doc, java.lang.String type)
doc - The document in which the action is created.type - The string corresponding to the action's subtype.public void delete()
public boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getSubtype()
public PDFDict getPDFDict()