Class PDFSection

java.lang.Object
io.keikai.doc.io.schema.pdf.PDFContainer
io.keikai.doc.io.schema.pdf.PDFSection
All Implemented Interfaces:
IPDFElement

public class PDFSection extends PDFContainer
Internal Use Only.

Represents a section in a PDF document.

Author:
Jamson Chan
  • Constructor Details

    • PDFSection

      public PDFSection()
  • Method Details

    • getHeader

      public PDFHeaderFooter getHeader(io.keikai.doc.api.impl.node.PageType pageType)
      Returns the header of the specified page type.
      Parameters:
      pageType - the page type.
      Returns:
      the header of the specified page type.
    • setHeader

      public void setHeader(PDFHeaderFooter header, io.keikai.doc.api.impl.node.PageType pageType)
      Sets the header of the specified page type.
      Parameters:
      header - the header to set.
      pageType - the page type.
    • getFooter

      public PDFHeaderFooter getFooter(io.keikai.doc.api.impl.node.PageType pageType)
      Returns the footer of the specified page type.
      Parameters:
      pageType - the page type.
      Returns:
      the footer of the specified page type.
    • setFooter

      public void setFooter(PDFHeaderFooter footer, io.keikai.doc.api.impl.node.PageType pageType)
      Sets the footer of the specified page type.
      Parameters:
      footer - the footer to set.
      pageType - the page type.
    • getPageWidth

      public float getPageWidth()
      Returns the width of the page.
      Returns:
      the width of the page.
    • setPageWidth

      public void setPageWidth(float pageWidth)
      Sets the width of the page.
      Parameters:
      pageWidth - the width of the page.
    • getPageHeight

      public float getPageHeight()
      Returns the height of the page.
      Returns:
      the height of the page.
    • setPageHeight

      public void setPageHeight(float pageHeight)
      Sets the height of the page.
      Parameters:
      pageHeight - the height of the page.
    • getMarginTop

      public float getMarginTop()
      Returns the top margin of the page.
      Returns:
      the top margin of the page.
    • setMarginTop

      public void setMarginTop(float marginTop)
      Sets the top margin of the page.
      Parameters:
      marginTop - the top margin of the page.
    • getMarginRight

      public float getMarginRight()
      Returns the right margin of the page.
      Returns:
      the right margin of the page.
    • setMarginRight

      public void setMarginRight(float marginRight)
      Sets the right margin of the page.
      Parameters:
      marginRight - the right margin of the page.
    • getMarginBottom

      public float getMarginBottom()
      Returns the bottom margin of the page.
      Returns:
      the bottom margin of the page.
    • setMarginBottom

      public void setMarginBottom(float marginBottom)
      Sets the bottom margin of the page.
      Parameters:
      marginBottom - the bottom margin of the page.
    • getMarginLeft

      public float getMarginLeft()
    • setMarginLeft

      public void setMarginLeft(float marginLeft)
      Sets the left margin of the page.
      Parameters:
      marginLeft - the left margin of the page.
    • isTitlePg

      public boolean isTitlePg()
      Returns whether to use different first header and footer.
      Returns:
      whether to use different first header and footer.
    • setTitlePg

      public void setTitlePg(boolean titlePg)
      Sets whether to use different first header and footer.
      Parameters:
      titlePg - whether to use different first header and footer.