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
Internal Use Only.
Represents a section in a PDF document.
- Author:
- Jamson Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFooter(io.keikai.doc.api.impl.node.PageType pageType) Returns the footer of the specified page type.getHeader(io.keikai.doc.api.impl.node.PageType pageType) Returns the header of the specified page type.floatReturns the bottom margin of the page.floatfloatReturns the right margin of the page.floatReturns the top margin of the page.floatReturns the height of the page.floatReturns the width of the page.booleanReturns 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
-
Constructor Details
-
PDFSection
public PDFSection()
-
-
Method Details
-
getHeader
Returns the header of the specified page type.- Parameters:
pageType- the page type.- Returns:
- the header of the specified 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.
-