Class PDFAction

java.lang.Object
com.sun.pdfview.action.PDFAction
Direct Known Subclasses:
GoToAction

public class PDFAction extends Object
The common super-class of all PDF actions.
  • Field Details

    • type

      private String type
      the type of this action
    • next

      private PDFObject next
      the next action or array of actions
  • Constructor Details

    • PDFAction

      public PDFAction(String type)
      Creates a new instance of PDFAction
  • Method Details

    • getAction

      public static PDFAction getAction(PDFObject obj, PDFObject root) throws IOException
      Get an action of the appropriate type from a PDFObject
      Parameters:
      obj - the PDF object containing the action to parse
      root - the root of the PDF object tree
      Throws:
      IOException
    • getType

      public String getType()
      Get the type of this action
    • getNext

      public PDFObject getNext()
      Get the next action or array of actions
    • setNext

      public void setNext(PDFObject next)
      Set the next action or array of actions