Skip to content

Word Insert Image

Type: word-insert-image  ·  Package: Word Activities v1.0.0

Inserts an image into the document as a paragraph. Useful for including a logo, signature, graphic or screenshot in a generated document.

Add the imagePath image (JPEG, PNG, GIF or BMP) to the end of the document, with the size indicated in centimeters. Only works within a session.

ParameterEditorDescription
imagePathexpressionImage file path (JPEG, PNG, GIF or BMP).
ParameterEditorDescription
sessionsessionWord session. Within a body it is inherited automatically.
widthCmexpressionWidth of the image in centimeters. By default 14.0.
heightCmexpressionHeight in centimeters. By default, same as widthCm.

Insert a logo at the beginning of a report:

Word Create path = "C:/reportes/informe.docx"
└─ body:
Word Insert Image imagePath = = asset("logo.png") widthCm = 5
Word Append Paragraph text = "Informe Mensual" style = Title