cancel
Showing results for 
Search instead for 
Did you mean: 

Document template : how to insert an image ?

milonette_
Star Collaborator
Star Collaborator

Hello,

I want to insert an image in a document template with freemarker language

like this:

  • Document is in HTML
  • then it's converted into PDF

😞 This image is not in the final document, I just got an empty square.

Is it possible to use "resources>images" in document template and what is the correct path to use ?

How insert images in a document template ?

thanks

2 REPLIES 2

milonette_
Star Collaborator
Star Collaborator

Hello Me,

In theory you could create your path with ${baseURL}img/logoAmoi.jpg

but baseURL is empty.

So the temporary solution should be :

<p><img src="http://mysecreturl/nuxeo/img/logoAmoi.jpg" WIDTH="50%"/></p>

It works with documents template and emails template too of course.

look at http