Class FootnotesUtil

java.lang.Object
com.itextpdf.layout.properties.margins.FootnotesUtil

public final class FootnotesUtil extends Object
Utility class to process footnotes for internal usage only.
  • Method Details

    • addFootnotesToPage

      public static void addFootnotesToPage (int pageNum, Iterable<FootnoteRenderer> footnotesToAdd, PageMarginBoxes pageMarginBoxes, FootnotesProperties footnotesProperties)
      Adds provided footnotes to the specified page via PageMarginBoxes.
      Parameters:
      pageNum - page number
      footnotesToAdd - list of Footnote instance to add
      pageMarginBoxes - PageMarginBoxes for the page
      footnotesProperties - FootnotesProperties to apply for footnotes
    • setParentForFootnoteRenderer

      public static void setParentForFootnoteRenderer (FootnoteRenderer footnoteRenderer, DocumentRenderer documentRenderer)
      Sets parent for footnote renderer in order for it to be layouted with correct properties and styles applied.
      Parameters:
      footnoteRenderer - FootnoteRenderer to set parent for
      documentRenderer - DocumentRenderer root renderer, the parent of footnotes container renderer
    • applyFootnoteAnchorStyle

      public static void applyFootnoteAnchorStyle (FootnoteAnchor anchor, Style footnoteAnchorLabelStyle)
      Applies Style storing style properties for footnote anchor that is placed inside the footnote.
      Parameters:
      anchor - FootnoteAnchor to apply style for
      footnoteAnchorLabelStyle - Style storing properties for footnote anchor inside the footnote