Class PDFPagesTree

All Implemented Interfaces:
RMPropertyChanger, Cloneable

public class PDFPagesTree extends RMObject
This class represents a pages tree in a PDF file.
  • Constructor Details

    • PDFPagesTree

      public PDFPagesTree(PDFFile file)
      Creates a new pdf pages tree.
  • Method Details

    • getPageCount

      public int getPageCount()
      Returns the number of pages.
    • getPage

      public PDFPage getPage(int anIndex)
      Returns the PDF page at the given index.
    • addPage

      public void addPage(PDFPage aPage)
      Adds a given page to this pages tree.
    • indexOf

      public int indexOf(PDFPage aPage)
      Returns the index of the given page in this pages tree.
    • resolvePageReferences

      public void resolvePageReferences()
      Tells all pages in this pages tree to resolve page references.
    • writePDF

      public void writePDF(RMPDFWriter aWriter)
      Writes this pages tree to the given PDF file.