Word Insert Image
Word Insert Image
Section titled “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.
How it works
Section titled “How it works”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.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
imagePath | expression | Image file path (JPEG, PNG, GIF or BMP). |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Word session. Within a body it is inherited automatically. |
widthCm | expression | Width of the image in centimeters. By default 14.0. |
heightCm | expression | Height in centimeters. By default, same as widthCm. |
Example
Section titled “Example”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 = TitleRelated activities
Section titled “Related activities”- Word Append Paragraph / Word Append Table — otros tipos de contenido.
- Page Screenshot / Win Screenshot — generate an image to insert.