Package pdf

Class PDFPageList

  • All Implemented Interfaces:
    java.io.Serializable

    public class PDFPageList
    extends PDFObject
    This object contains the document's pages.
    See Also:
    Serialized Form
    • Constructor Detail

      • PDFPageList

        public PDFPageList()
        This constructs a PDF Pages object.
    • Method Detail

      • add

        public void add​(PDFPage page)
        This adds a page to the document.
        Parameters:
        page - PDFPage to add
      • getPage

        public PDFPage getPage​(int page)
        This returns a specific page. Used by the PDF class.
        Parameters:
        page - page number to return
        Returns:
        PDFPage at that position
      • write

        public void write​(java.io.OutputStream os)
                   throws java.io.IOException
        Description copied from class: PDFObject

        Writes the object to the output stream. This method must be overidden.

        Note: It should not write any other objects, even if they are it's Kids, as they will be written by the calling routine.

        Specified by:
        write in class PDFObject
        Parameters:
        os - OutputStream to send the object to
        Throws:
        java.io.IOException - on error