java.lang.Object
de.erichseifert.vectorgraphics2d.pdf.Page
All Implemented Interfaces:
PDFObject

class Page extends Object implements PDFObject
Represents a page of a PDF document.
  • Field Details

  • Constructor Details

    • Page

      public Page(Resources resources, 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 Details

    • getType

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

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