replaceVariableImage

Replaces image variables.

Description

replaceVariableImage (variables: Map<string, ArrayBuffer>, target: Target = "document", options: OptionsReplaceVariableImage = {}): this

This method allows to replace a placeholder image that may be fully formatted in Word (border, shadows, effects...) with an image of our choice.

Code samples

Example #1

The resulting Word document looks like:

Release notes

  • jsdocuments 1.0:
    • New method