Dynamic doc generation with images & its description

Certified Senior Developer

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

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    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

Reply
  • 0
    Certified Senior Developer

    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

Children
No Data