Package com.openhtmltopdf.layout
Class FootnoteManager
- java.lang.Object
-
- com.openhtmltopdf.layout.FootnoteManager
-
public class FootnoteManager extends Object
The footnote manager which is only created if footnotes are detected in the document. SeeLayoutContext.getFootnoteManager()
-
-
Constructor Summary
Constructors Constructor Description FootnoteManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFootnoteBody(LayoutContext c, BlockBox footnoteBody, LineBox line)Adds a footnote body to the line box page, creating the footnote area as required.voidremoveFootnoteBodies(LayoutContext c, List<BlockBox> footnoteBodies, LineBox line)Removes footnotes.
-
-
-
Method Detail
-
addFootnoteBody
public void addFootnoteBody(LayoutContext c, BlockBox footnoteBody, LineBox line)
Adds a footnote body to the line box page, creating the footnote area as required.
Important: This changes the page break point by expanding the footnote area. It also reserves subsequent pages if required for the footnote area.
If the line box is moved to a different page, one must callremoveFootnoteBodies(LayoutContext, List, LineBox)before the page change and this method again after.
-
removeFootnoteBodies
public void removeFootnoteBodies(LayoutContext c, List<BlockBox> footnoteBodies, LineBox line)
Removes footnotes. This is used when a line is moved to a new page. We remove from first page and add to the next.
-
-