JavaScript API: replaceVariableExternalFile
- 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
replaceVariableExternalFile
PREMIUM
TRIAL / ADVANCED
Replaces text variables with external files.
Note
You are reading the JavaScript API documentation. For the PHP API method please go to replaceVariableByExternalFile.
Description
replaceVariableExternalFile (variables: Map<string, WordFragment>, options: OptionsReplaceVariableExternalFile = {}): this
Only compatible with MS Word 2007 or newer.
Release notes
- phpdocx 15.0:
- new method.