Class Page

  • All Implemented Interfaces:
    PDFObject

    class Page
    extends java.lang.Object
    implements PDFObject
    Represents a page of a PDF document.
    • Constructor Detail

      • Page

        public Page​(Resources resources,
                    java.awt.geom.Rectangle2D mediaBox,
                    DefaultPDFObject contents)
        Initializes a Page with the specified parent node, MediaBox and contents.
        Parameters:
        resources - Page resources
        mediaBox - Boundaries of the page.
        contents - Contents of the page.
    • Method Detail

      • getType

        public java.lang.String getType()
        Returns the type of this object. The return value is always Page.
        Returns:
        The String Page.
      • getMediaBox

        public java.awt.geom.Rectangle2D getMediaBox()
      • getParent

        public PageTreeNode getParent()
        Returns the immediate parent of this Page.
        Returns:
        Parent node.
      • setParent

        protected void setParent​(PageTreeNode parent)
        Sets the parent of this Page to the specified node.
        Parameters:
        parent - Immediate parent.
      • getResources

        public Resources getResources()
        Returns the Resources object associated with this Page.
        Returns:
        Page resources.
      • getContents

        public DefaultPDFObject getContents()
        Returns the contents of this Page.
        Returns:
        Page contents.