Class XWPFFootnote

    • Method Detail

      • ensureFootnoteRef

        public void ensureFootnoteRef​(XWPFParagraph p)
        Ensure that the specified paragraph has a reference marker for this footnote by adding a footnote reference if one is not found.

        This method is for the first paragraph in the footnote, not paragraphs that will refer to the footnote. For references to the footnote, use XWPFParagraph#addFootnoteReference(XWPFFootnote).

        The first run of the first paragraph in a footnote should contain a CTFtnEdnRef object.

        Specified by:
        ensureFootnoteRef in class XWPFAbstractFootnoteEndnote
        p - The XWPFParagraph to ensure