Class XWPFFootnote

All Implemented Interfaces:
Iterable<XWPFParagraph>, IBody

public class XWPFFootnote extends XWPFAbstractFootnoteEndnote
Represents a bottom-of-the-page footnote.

Create a new footnote using XWPFDocument.createFootnote() or XWPFFootnotes.createFootnote().

The first body element of a footnote should (or possibly must) be a paragraph with the first run containing a CTFtnEdnRef object. The XWPFAbstractFootnoteEndnote.createParagraph() and XWPFAbstractFootnoteEndnote.createTable() methods do this for you.

Footnotes have IDs that are unique across all footnotes in the document. You use the footnote ID to create a reference to a footnote from within a paragraph.

To create a reference to a footnote within a paragraph you create a run with a CTFtnEdnRef that specifies the ID of the target paragraph. The XWPFParagraph.addFootnoteReference(XWPFAbstractFootnoteEndnote) method does this for you.