title: open pdf without text with python
body: <p>I want open a PDF for a Django views but my PDF has not a text and python returns me a blank PDF.
  On each page, this is a scan of a page : <a href="https://github.com/Hyperion60/HyperAnnales/blob/master/Math%C3%A9matiques/td2-s1-correction.pdf" rel="nofollow noreferrer">link</a></p>
  
  <pre><code>from django.http import HttpResponse
  
  def views_pdf(request, path):
     with open(path) as pdf:
     response = HttpResponse(pdf.read(),content_type='application/pdf')
     response['Content-Disposition'] = 'inline;elec'
     return response
  </code></pre>
  
  <p>Exception Type: UnicodeDecodeError</p>
  
  <p>Exception Value: 'charmap' codec can't decode byte 0x9d in position 373: character maps to &lt; undefined ></p>
  
  <p>Unicode error hint</p>
  
  <p>The string that could not be encoded/decoded was: � ��`����</p>
  
  <p>How to say at Python that is not a text but a picture ?</p>