Class PDFAction

  • Direct Known Subclasses:
    GoToAction

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

      Fields 
      Modifier and Type Field Description
      private PDFObject next
      the next action or array of actions
      private java.lang.String type
      the type of this action
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFAction​(java.lang.String type)
      Creates a new instance of PDFAction
    • Field Detail

      • type

        private java.lang.String type
        the type of this action
      • next

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

      • PDFAction

        public PDFAction​(java.lang.String type)
        Creates a new instance of PDFAction
    • Method Detail

      • getAction

        public static PDFAction getAction​(PDFObject obj,
                                          PDFObject root)
                                   throws java.io.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:
        java.io.IOException
      • getType

        public java.lang.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