JavaScript API: replaceVariableText

replaceVariableText

PREMIUM TRIAL / ADVANCED

Replaces text variables with text contents.

Note

You are reading the JavaScript API documentation. For the PHP API method please go to replaceVariableByText.

Description
replaceVariableText (variables: Map<string, string>, target: Target = "document", options: OptionsReplaceVariableText = {}): this
Code samples

Example #1

The resulting Word document looks like:

Release notes
  • phpdocx 15.0:
    • new method.