Skip to main content
rishikeshr4182
October 6, 2023
Question

Dynamic doc generation with images & its description

  • October 6, 2023
  • 1 reply
  • 0 views

How to generate a dynamic docx template from images with description appended adjacent to it

1 reply

deepakj5843
October 6, 2023

Hi Rishi,

Passing below XML data model and image shows the corresponding DOCX template. and then accessing it word using the below _index code.

<value>
<count>6</count>
<imageDescription>desc1</imageDescription>
<imageDescription>desc2</imageDescription>
<imageDescription>desc3</imageDescription>
<imageDescription>desc4</imageDescription>
<imageDescription>desc5</imageDescription>
<imageDescription>desc6</imageDescription>
</value>

[#list issueImages as issueImages]

IMAGE HERE

${doc.value.imageDescription[issueImages_index]}

[/#list]

Hope this helps