Is it possible to add images to the final DOCX file? I’m thinking specifically photos from the camera in PowerApps or a pen input for signatures.
I can get the base64 from the pen input or camera control in Powerapps and add it to the DOCX dynamically but at the moment it adds it as a text string, is there any functionality to render it as an image?
I have thought about going down the HTML template route instead as I’ve seen examples there but wanted to see if it was possible in DOCX first.
Unfortunately, Create DOCX from a template action doesn’t support images yet.
However, we are planning to add support both base64 and link to picture formats in future.
For now, you use this action to create HTML documents, it supports images.
I noticed the updated DOCX actions are available including new table functionality, are images supported yet?
The invoice demo contains a signature, does this mean it’s possible now or is this a static image?
I may have found a rather convoluted workaround to getting a signature from PowerApps to an HTML template using Flow, OneDrive and FTP but if the DOCX action could support images natively it would make the whole process brilliantly simple.
Hi @Oleg_Tsurkan I need to pass Base64 string which is a signature, can you kindly let me know if we have a solution yet? in word template or do we have any date when it will be available?
You can insert an image using a link to it or a base64 code. Please make sure that you added a proper variable to your DOCX template, it should look like this: {{yourImageVariable}:image}
Then, in the action, you should specify the image like that (in case of using base64 code):
Thanks @Oleg_Tsurkan I will try this.
I have noticed that for the last one hour, Create DOCX document from Template in Logic App have started producing completely blank word document, not sure whats wrong.
Hi @Oleg_Tsurkan
It works on image converter however in Plumsail call it does not. Can you kindly have a look at the attached sample?test image plumsail.txt (6.0 KB)
Hi, the image embedding works fine for me however the images are quite large and overflowing the areas I want to display them in my document. Is it possible to define the size of the image ? and constrain the proportions ?
Hi @kirill_sh,
I am doing this, but the image is bleeding out of the cell that I have added the tag in the screen shot attached I have a single cell table - about half a page width with the tag referenced as {{signatureImage}:picture}.
Running the flow and merging the Base64 String with the template gives an image which is nearly the full page width regardless of the width of the table cell it is contained in.
I had tried that, in fact I tried changing a few settings on the table, column, row and cell. I have attached the resultant file, with the resize option disable and the width of the cell fixed (Top Example) and it simply hides most of the image rather than resizing the image.
I appreciate your help, any further ideas would also be appreciated.
so there is no way to do this automatically from data generated in a Microsoft flow ? the image would need to be resized manually after the document is generated ?