Class Action

java.lang.Object
com.datalogics.PDFL.Action
Direct Known Subclasses:
GoToAction, LaunchAction, RemoteGoToAction, URIAction

public class Action extends Object
When a user clicks a link or bookmark in a PDF, an action occurs, moving the reader to a new location. An action can involve moving the reader to a new page in the file, for example.

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 Details

    • Action

      public Action(Document doc, String type)
      Creates a new action object.
      Parameters:
      doc - The document in which the action is created.
      type - The string corresponding to the action's subtype.
  • Method Details

    • delete

      public void delete()
    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSubtype

      public String getSubtype()
      The action's subtype

    • getPDFDict

      public PDFDict getPDFDict()
      Retrieve the PDFObject representation of this object