Package com.itextpdf.layout.element
Class SectionBreakUtil
java.lang.Object
com.itextpdf.layout.element.SectionBreakUtil
This file is a helper class for
SectionBreak for internal usage only. Be aware that its API and functionality may be changed in the future.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbreakPage(SectionBreak sectionBreak) Checks whether providedSectionBreakshould add page break.static voidbreakPage(SectionBreak sectionBreak, boolean breakPage) Defines whether providedSectionBreakshould add page break.
-
Method Details
-
breakPage
Checks whether providedSectionBreakshould add page break.Page won't break in case SectionBreak is added to the empty page with the same page size or if page margins and page size were not changed. So
breakPagefield also checks whether SectionBreak changes page margins or page size and is not the 1st element on the page.- Parameters:
-
sectionBreak-SectionBreakto check - Returns:
-
trueif page break is expected,falseotherwise
-
breakPage
Defines whether providedSectionBreakshould add page break. Controlled bySectionBreakRenderer.layout(LayoutContext).Page shouldn't break in case SectionBreak is added to the empty page with the same page size or if page margins and page size were not changed. So
breakPagefield also checks whether SectionBreak changes page margins or page size and is not the 1st element on the page.- Parameters:
-
sectionBreak-SectionBreakto check -
breakPage-trueif page break is expected,falseotherwise
-