Метод Position.insertFootnote
Метод вставляет сноску в текущую позицию.
Вызов
public Position insertFootnote()
Возвращает
- позиция содержимого сноски, тип Position.
Пример
Range range = document.getRange();
Range sentence = range.getBegin().getCurrentRange(TextUnit.Sentence);
Position pos = sentence.getContentEnd().insertFootnote();
pos.insertText("Footnote");