Class PDFDocument

  • All Implemented Interfaces:
    IPDFElement

    public class PDFDocument
    extends java.lang.Object
    implements IPDFElement
    Internal Use Only.

    Represents a PDF document.

    Author:
    Jamson Chan
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFDocument()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addSection​(PDFSection section)
      Adds a section to the document.
      java.util.List<PDFSection> getSections()
      Returns the sections in the document.
      boolean isEvenAndOddHeaders()
      Returns whether shows different header and footer of even and odd pages in this document.
      void setEvenAndOddHeaders​(boolean evenAndOddHeaders)
      Sets whether shows different header and footer of even and odd pages in this document.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PDFDocument

        public PDFDocument()
    • Method Detail

      • getSections

        public java.util.List<PDFSection> getSections()
        Returns the sections in the document.
        Returns:
        the sections in the document.
      • addSection

        public void addSection​(PDFSection section)
        Adds a section to the document.
        Parameters:
        section - the section to add.
      • isEvenAndOddHeaders

        public boolean isEvenAndOddHeaders()
        Returns whether shows different header and footer of even and odd pages in this document.
        Returns:
        whether shows different header and footer of even and odd pages in this document.
      • setEvenAndOddHeaders

        public void setEvenAndOddHeaders​(boolean evenAndOddHeaders)
        Sets whether shows different header and footer of even and odd pages in this document.
        Parameters:
        evenAndOddHeaders - whether shows different header and footer of even and odd pages in this document.