addEndnote
- addBackgroundImage
- addFooter
- addFooterSection
- addHeader
- addHeaderSection
- addLineNumbering
- addMacroFromDoc
- addPageBorders
- addProperties
- addSection
- createDocx
- createDocxAndDownload
- createCharacterStyle
- createListStyle
- createParagraphStyle
- createTableStyle
- docxSettings
- embedFont
- importChartStyle
- importHeadersAndFooters
- importListStyle
- importStyles
- modifyPageLayout
- parseStyles
- removeFooters
- removeHeaders
- setBackgroundColor
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
- setRTL
- addBibliography
- addBookmark
- addBreak
- addChart
- addCitation
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addOLE
- addOnlineVideo
- addPageNumber
- addShape
- addSimpleField
- addSource
- addStructuredDocumentTag
- addSVG
- addTable
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordFragment
- addWordML
- embedHTML
- clearBlocks
- cloneBlock
- deleteBlock
- getTemplateVariables
- getTemplateVariablesType
- modifyInputFields
- modifyMergeFields
- processTemplate
- removeTemplateVariable
- replaceBlock
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
- tickCheckboxes
addEndnote

Inserts an endnote into the Word document.
Description
public addEndnote ( array $options )
This method allows the insertion of a endnote into the Word document.
You may fully customize the endnote content including all kind of elements like paragraphs of text with sophisticated formatting, images, links or even tables and HTML content.
If one wishes to insert an endnote within a complex paragraph one should use this method in combination with the addText method.
Parameters
options
An array with the available options.
The possible keys and values are:
key | Type | Description |
---|---|---|
textDocument | mixed | This can be a string of text or a WordFragment that will appear in the Word document just before the endnote call or an array with the text and the formatting options (as in the addText method) or a Word fragment. |
textEndnote | WordMLFragment | This is a string of text that will show up in the corresponding endnote or a WordFragment that may include a variety of elements. |
textEndnotes | array | Add multiple endnotes. |
endnoteMark | array | The keys of this array are:
|
referenceMark | array | The keys of this array are:
|
pStyle | string | Paragraph style. Default as endnoteTextPHPDOCX. |
rStyle | string | Character style. Default as endnoteReferencePHPDOCX. |