Package io.keikai.doc.io.schema.pdf
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 Summary
Constructors Constructor Description PDFSection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDFHeaderFootergetFooter(io.keikai.doc.api.impl.node.PageType pageType)Returns the footer of the specified page type.PDFHeaderFootergetHeader(io.keikai.doc.api.impl.node.PageType pageType)Returns the header of the specified page type.floatgetMarginBottom()Returns the bottom margin of the page.floatgetMarginLeft()floatgetMarginRight()Returns the right margin of the page.floatgetMarginTop()Returns the top margin of the page.floatgetPageHeight()Returns the height of the page.floatgetPageWidth()Returns the width of the page.booleanisTitlePg()Returns whether to use different first header and footer.voidsetFooter(PDFHeaderFooter footer, io.keikai.doc.api.impl.node.PageType pageType)Sets the footer of the specified page type.voidsetHeader(PDFHeaderFooter header, io.keikai.doc.api.impl.node.PageType pageType)Sets the header of the specified page type.voidsetMarginBottom(float marginBottom)Sets the bottom margin of the page.voidsetMarginLeft(float marginLeft)Sets the left margin of the page.voidsetMarginRight(float marginRight)Sets the right margin of the page.voidsetMarginTop(float marginTop)Sets the top margin of the page.voidsetPageHeight(float pageHeight)Sets the height of the page.voidsetPageWidth(float pageWidth)Sets the width of the page.voidsetTitlePg(boolean titlePg)Sets whether to use different first header and footer.-
Methods inherited from class io.keikai.doc.io.schema.pdf.PDFContainer
addBlock, getBlocks
-
-
-
-
Method Detail
-
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.
-
-