antonmihaylov / OpenXmlTemplates

Word .docx templating system that is designer (no scripting tags) and server-friendly (no word installation required)
GNU Lesser General Public License v3.0
92 stars 25 forks source link

Repeating images #26

Closed sduncan56 closed 1 year ago

sduncan56 commented 2 years ago

Not sure if I'm just imagining how this should work wrong, but - I'm trying to get a list of images inserted into the document.

Here's my JSON: { "Images":[ { "image":"path\\to\\image\\image1.jpg" }, { "image":"path\\to\\image2.jpg" } ] }

My template: tst_template.docx

In the output document, I get two images, but they're both image2.jpg. Is my JSON wrong? Or does repeating image controls not work?

antonmihaylov commented 1 year ago

I'm assuming this is fixed after the #36 PR