title: How to show generated QR Code in generated PDF Django
body: <p>I want to show generated qr code in my generated PDF but it doesn't show. If in html it's showed but not in pdf. I want to show qrcode in PDF without save it to media</p>
  <p>Here is my code in views.py :</p>
  <pre><code>path_qr = 'localhost:8000/qrcode/detail/1'
  qr = QRCode()
  qr.add_data(path_qr)
  img = qr.make_image()
  
  data = {
    'qr_code': img
  }
  
  template = get_template(template_src)
  html = template.render(data)
  result = BytesIO()
  pdf1 = pisa.pisaDocument(BytesIO(html.encode(&quot;ISO-8859-1&quot;)), result)
  
  return HttpResponse(result.getvalue(), content_type='application/pdf')
  </code></pre>
  <p>And here is my code in html:</p>
  <pre><code>&lt;img src=&quot;{{ qrcode }}&quot; width=&quot;100&quot; height=&quot;100&quot;&gt;
  </code></pre>