addFootnote

addFootnote

BASIC / ADVANCED / PREMIUM

Inserts a footnote into the Word document.

Description
public void addFootnote(OptionsFootnote options) throws Exception

This method allows the insertion of a footnote into the Word document.

Parameters

options

Option Type Description
textDocument String Text that will appear in the Word document.
textFootnote WordFragment WordFragment that will appear as the footnote in the Word document.
footnoteMark HashMap<String, String>
  • customMark: a special character, if any, that you would like to use for the call to the footnote content.
  • font: the font family you wish to use (Arial, Calibri...).
  • bold: true or false for bold text.
  • bidi: true for right to left languages.
  • italic: true or false to turn on italics.
  • color: an hexadecimal color ("000000", "FF0000"...).
  • rtl: true for right to left languages.
referenceMark HashMap<String, String>
  • font: the font family you wish to use (Arial, Calibri...).
  • bold: true or false for bold text.
  • bidi: true for right to left languages.
  • italic: true or false to turn on italics.
  • color: an hexadecimal color ("000000", "FF0000"...).
  • rtl: true for right to left languages.
Code samples

Example #1

The resulting Word document looks like: