Adds a new footnote with the given text to the document at the current input position. A footnote consists of a reference mark in the document and the footnote itself appearing at the bottom of the page.
<void> FootnoteCollection.add(<string> text, <string> name, <number> id, <AddFootnoteCallback> callback, <ErrorCallback> errorCallback)| Parameter | Description |
|---|---|
| text | The footnote's text. |
| name | The footnote's name. Set this to null or an empty string to not set a name. |
| id | The footnote's numerical id. Set this to null or 0 to not set an id. |
| callback | The callback function that receives the added footnote. |
| error |
Is called when the operation failed with an error. |