Package com.itextpdf.layout.element
Class SectionBreak
java.lang.Object
- All Implemented Interfaces:
-
IAbstractElement,IElement,IPropertyContainer
A layout object that terminates the current page content if any and starts the new page.
If no PageSize and PageMarginBoxes are given, the new content section will have default page size and page margins.
Specified (or default if not specified) PageSize and PageMarginBoxes will be applied for all next pages until it'll be overridden by other SectionBreak or AreaBreak elements.
-
Field Summary
Fields inherited from class com.itextpdf.layout.element.AbstractElement
childElements, nextRenderer, stylesFields inherited from class com.itextpdf.layout.ElementPropertyContainer
properties -
Constructor Summary
ConstructorsConstructorDescriptionCreates newSectionBreakinstance.SectionBreak(PageSize pageSize) Creates newSectionBreakinstance.SectionBreak(PageSize pageSize, PageMarginBoxes pageMarginBoxes) Creates newSectionBreakinstance.SectionBreak(PageMarginBoxes pageMarginBoxes) Creates newSectionBreakinstance. -
Method Summary
Modifier and TypeMethodDescriptionGetsFootnotesPropertiesspecified for the document viaSectionBreakto customize footnotes.Gets the page margins.Gets the page size.protected IRendererCreates a new renderer instance.setFootnotesProperties(FootnotesProperties footnotesProperties) SetsFootnotesPropertiesfor the document.setPageMargins(PageMarginBoxes pageMarginBoxes) Sets the page margins.setPageSize(PageSize pageSize) Sets the page size.Methods inherited from class com.itextpdf.layout.element.AbstractElement
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberMethods inherited from class com.itextpdf.layout.ElementPropertyContainer
deleteOwnProperty, getDefaultProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, getTransparentStrokeColor, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDashPattern, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeColor, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing, simulateBold, simulateItalicMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.itextpdf.layout.IPropertyContainer
deleteOwnProperty, getDefaultProperty, getOwnProperty, hasOwnProperty, setProperty
-
Constructor Details
-
SectionBreak
public SectionBreak()Creates newSectionBreakinstance.The new content section will have default page size and page margins.
-
SectionBreak
Creates newSectionBreakinstance.The new content section will have the specified page size and default page margins.
- Parameters:
-
pageSize-PageSizepage size of the new content section
-
SectionBreak
Creates newSectionBreakinstance.The new content section will have the specified page margins and default page size.
- Parameters:
-
pageMarginBoxes-PageMarginBoxespage margins of the new content section
-
SectionBreak
Creates newSectionBreakinstance.The new content section will have the specified page size and page margins.
- Parameters:
-
pageSize-PageSizepage size of the new content section -
pageMarginBoxes-PageMarginBoxespage margins of the new content section
-
-
Method Details
-
getPageSize
Gets the page size.- Returns:
-
the
page sizeof the next content section
-
setPageSize
Sets the page size.- Parameters:
-
pageSize- the newpage sizeof the next content section - Returns:
- this same instance
-
getPageMargins
Gets the page margins.- Returns:
-
the
page marginsof the next content section
-
setPageMargins
Sets the page margins.- Parameters:
-
pageMarginBoxes- thepage marginsof the next content section - Returns:
- this same instance
-
getFootnotesProperties
GetsFootnotesPropertiesspecified for the document viaSectionBreakto customize footnotes.- Returns:
-
FootnotesPropertiesspecified for the document
-
setFootnotesProperties
SetsFootnotesPropertiesfor the document.- Parameters:
-
footnotesProperties-FootnotesPropertiesto customize footnotes - Returns:
-
this same
SectionBreakinstance
-
makeNewRenderer
Description copied from class:AbstractElementCreates a new renderer instance.- Specified by:
-
makeNewRendererin classAbstractElement<SectionBreak> - Returns:
-
new
IRenderer
-