JSON API - addFootnote

addFootnote

PREMIUM TRIAL / ADVANCED

Inserts a footnote.

Note

You are reading the JSON API documentation. For the PHP API method please go to addFootnote.

JSON data

Other styles from createParagraphStyle can be used.

Key Description
textDocument string or WordFragment.
textFootnote string or WordFragment.
textFootnotes Add multiple footnotes.
pStyle Paragraph style. Default as footnoteTextPHPDOCX.
rStyle Character style. Default as footnoteReferencePHPDOCX.
footnoteMark
  • "customMark": a special character, if any, that you would like to use for the call to the footnote content.
  • "font": font family (Arial, Calibri...).
  • "fontSize": the font size.
  • "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.
  • "highlightColor": black, blue, cyan, green, magenta, red, yellow, white, darkBlue, darkCyan, darkGreen, darkMagenta, darkRed, darkYellow, darkGray, lightGray, none.
  • "underline": underlines text: single.
  • "backgroundColor": an hexadecimal color.
referenceMark
  • "font": font family (Arial, Calibri...).
  • "fontSize": the font size.
  • "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.
  • "highlightColor": black, blue, cyan, green, magenta, red, yellow, white, darkBlue, darkCyan, darkGreen, darkMagenta, darkRed, darkYellow, darkGray, lightGray, none.
  • "underline": underlines text: single.
  • "backgroundColor": an hexadecimal color.
Code samples

Example #1

Release notes
  • phpdocx 18.0:
    • new action.