JavaScript API: addText
- addBookmark
- addBreak
- addComment
- addCrossReference
- addDateTime
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addImage
- addLink
- addList
- addMergeField
- addPageNumber
- addSimpleField
- addStructuredDocumentTag
- addSvg
- addTab
- addTable
- addTableOfContents
- addTableOfFigures
- addText
- addWordFragment
- addWordMl
- getTemplateSymbols
- getTemplateVariables
- openTemplate
- processTemplate
- removeVariableImage
- removeVariableText
- replaceVariableCheckbox
- replaceVariableExternalFile
- replaceVariableImage
- replaceVariableInputField
- replaceVariableList
- replaceVariableTable
- replaceVariableText
- replaceVariableWordFragment
- replaceVariableWordMl
- setTemplateSymbols
addText
PREMIUM
TRIAL / ADVANCED
Adds text.
Note
You are reading the JavaScript API documentation. For the PHP API method please go to addText.
Description
addText (options: string | (OptionsText | WordFragment)[], optionsParagraph: OptionsParagraph = {}): this
Code samples
Release notes
- phpdocx 15.5:
- caps, characterSpacing, em, emboss, noProof, position, shadow, smallCaps, textDirection, underlineColor, vanish, verticalAlign, widowControl and wordWrap options.
- phpdocx 15.0:
- new method.