Inserting picture with a secure(https) url inside Docx template


#1

Hello,
Is it possible to insert a picture inside a table row by providing a secure (https) url ?
Whenever i try that, the templating engine tries to correct it by adding http:// in front of my secure url. eg: http://https://sigxxxxxxdatas.blob.core.windows.net/

In my word template, i have put inside the corresponding table cell the following tag : {{imgValue}:url}

I will aprreciate any help on this.
Thanks!


#2

Hello @MainOv,

Tag url corrects an url to full qualified with HTTP scheme or checks correctness when a scheme exists. When result URL is not correct - removes it from the document.

Like this:

{
“value”: “picturesite.com/pics/picture.png
}

URL corrects it this way: http://picturesite.com/pics/picture.png

To keep https you can try to use the variable without URL formatter:

{{imgValue}}

Best regards,
Petr Bushuev
Plumsail Team