Using plugin DOCX From Template to generate word doc and using image bookmark to display image, how can we display image conditionally, it should display image if i pass any image data from PM.
Discussion posts and replies are publicly visible
Can you see if IF statements work? freemarker.apache.org/.../ref_directive_if.html
In this example below, you could add a flag to your data model ("<showImage>true</showImage>") and then try wrapping the image list? Unfortunately, I've only been able to verify this with simple text - the plugin is giving me problems with the image input at the moment, so I haven't been able to test with your exact scenario.
Pankaj Kabdal
Try adding the below conditional logic
Thanks Somasundaram it worked.
also how can the image filed can resize to the original image size in the document