Class SectionBreakUtil

java.lang.Object
com.itextpdf.layout.element.SectionBreakUtil

public final class SectionBreakUtil extends Object
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 Details

    • breakPage

      public static boolean breakPage (SectionBreak sectionBreak)
      Checks whether provided SectionBreak should 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 breakPage field also checks whether SectionBreak changes page margins or page size and is not the 1st element on the page.

      Parameters:
      sectionBreak - SectionBreak to check
      Returns:
      true if page break is expected, false otherwise
    • breakPage

      public static void breakPage (SectionBreak sectionBreak, boolean breakPage)
      Defines whether provided SectionBreak should add page break. Controlled by SectionBreakRenderer.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 breakPage field also checks whether SectionBreak changes page margins or page size and is not the 1st element on the page.

      Parameters:
      sectionBreak - SectionBreak to check
      breakPage - true if page break is expected, false otherwise