Class FootnotesUtil
java.lang.Object
com.itextpdf.layout.properties.margins.FootnotesUtil
Utility class to process footnotes for internal usage only.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFootnotesToPage(int pageNum, Iterable<FootnoteRenderer> footnotesToAdd, PageMarginBoxes pageMarginBoxes, FootnotesProperties footnotesProperties) Adds provided footnotes to the specified page viaPageMarginBoxes.static voidapplyFootnoteAnchorStyle(FootnoteAnchor anchor, Style footnoteAnchorLabelStyle) AppliesStylestoring style properties for footnote anchor that is placed inside the footnote.static voidsetParentForFootnoteRenderer(FootnoteRenderer footnoteRenderer, DocumentRenderer documentRenderer) Sets parent for footnote renderer in order for it to be layouted with correct properties and styles applied.
-
Method Details
-
addFootnotesToPage
public static void addFootnotesToPage(int pageNum, Iterable<FootnoteRenderer> footnotesToAdd, PageMarginBoxes pageMarginBoxes, FootnotesProperties footnotesProperties) Adds provided footnotes to the specified page viaPageMarginBoxes.- Parameters:
-
pageNum- page number -
footnotesToAdd- list ofFootnoteinstance to add -
pageMarginBoxes-PageMarginBoxesfor the page -
footnotesProperties-FootnotesPropertiesto 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-FootnoteRendererto set parent for -
documentRenderer-DocumentRendererroot renderer, the parent of footnotes container renderer
-
applyFootnoteAnchorStyle
AppliesStylestoring style properties for footnote anchor that is placed inside the footnote.- Parameters:
-
anchor-FootnoteAnchorto apply style for -
footnoteAnchorLabelStyle-Stylestoring properties for footnote anchor inside the footnote
-