com.aspose.words

Class FootnotePosition

  • java.lang.Object
    • com.aspose.words.FootnotePosition
public class FootnotePosition 
extends java.lang.Object

Utility class containing constants. Defines the footnote position.

Example:

Shows how to insert footnotes and edit their appearance.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Insert 3 paragraphs with a footnote at the end of each one
builder.write("Text 1. ");
builder.insertFootnote(FootnoteType.FOOTNOTE, "Footnote 1");
builder.insertBreak(BreakType.PAGE_BREAK);
builder.write("Text 2. ");
builder.insertFootnote(FootnoteType.FOOTNOTE, "Footnote 2");
builder.write("Text 3. ");
builder.insertFootnote(FootnoteType.FOOTNOTE, "Footnote 3", "Custom reference mark");

// Edit the numbering and positioning of footnotes 
doc.getFootnoteOptions().setPosition(FootnotePosition.BENEATH_TEXT);
doc.getFootnoteOptions().setNumberStyle(NumberStyle.UPPERCASE_ROMAN);
doc.getFootnoteOptions().setRestartRule(FootnoteNumberingRule.CONTINUOUS);
doc.getFootnoteOptions().setStartNumber(1);

doc.save(getArtifactsDir() + "Document.Footnotes.docx");
See Also:
FootnoteOptions

Field Summary
static final intBOTTOM_OF_PAGE = 1
Footnotes are output at the bottom of each page.
static final intBENEATH_TEXT = 2
Footnotes are output beneath text on each page.
 

    • Field Detail

      • BOTTOM_OF_PAGE = 1

        public static final int BOTTOM_OF_PAGE
        Footnotes are output at the bottom of each page.
      • BENEATH_TEXT = 2

        public static final int BENEATH_TEXT
        Footnotes are output beneath text on each page.