title: Django : Display image with Pisa library
body: <p>I'm looking for add Pictures in my PDF generated by <code>html2pdf library</code>.
  Up to now, I don't find a way to do that.</p>
  
  <p>My function looks like :</p>
  
  <pre><code>@login_required
  def Generate_PDF(request, id) :
  
      personne = get_object_or_404(Individu, pk=id)
  
      data = {"personne" :personne}
  
      template = get_template('raw.html') 
      html  = template.render(Context(data))
      result = StringIO.StringIO()
  
      path = Global_variables.Individu_path.path + filename
  
  
      pdf = pisa.pisaDocument(StringIO.StringIO(html.encode("utf-8")), result)
      if not pdf.err:
          return HttpResponse(result.getvalue(), content_type='application/pdf')
      return HttpResponse('We had some errors&lt;pre&gt;%s&lt;/pre&gt;' % escape(html))
  </code></pre>
  
  <p>In my <code>RawFile.html</code>, I add : </p>
  
  <pre><code>&lt;body&gt;
  
          &lt;img class="logo" src="{% get_static_prefix %}{{ mytheme }}/images/logo.jpeg" /&gt;
  
          &lt;h2 align="center"&gt; &lt;font size="6"&gt; Fiche d'Identification - INDIVIDU&lt;/font&gt;&lt;/align&gt; &lt;/h2&gt;
  
          &lt;br&gt;&lt;/br&gt;
          &lt;br&gt;&lt;/br&gt;
  
          {% block content %} 
  
          {% if personne.Image %}
              &lt;img src='./19312STRASBOURG-855525.jpg'/&gt;
          {% endif %}
  
          &lt;h3 align="left"&gt; N° Identification {{personne.NumeroIdentification}} &lt;/align&gt; &lt;/h3&gt;
          &lt;h3 align="left"&gt; Au nom de {{personne.Prenom}} {{personne.Nom}}&lt;/align&gt; &lt;/h3&gt;
          ...
          &lt;/body&gt;
  </code></pre>
  
  <p>How I can add my logo and another picture in my PDF ? I searched different way to do that. None is working.</p>
  
  <p>Thank you</p>