title: Read PDF file in a new tab of same browser
body: <p>In a HTML table I am showing a list of data containing pdf files. All the pdf file name are hyperlinks. When user clicks on that hyper link the pdf should open in a new tab. Basically on click of the hyperlink I am calling an JS function, which calls an method to the server side. In the server side scripting I have written the below code.</p>
  
  <pre><code>wrapper = FileWrapper(file(file_name))
  response = HttpResponse(wrapper, mimetype='application/pdf; charset=utf-8')
  response['Content-Disposition'] = 'inline; filename=' + file
  response['Content-Length'] = os.path.getsize(file_name)
  return response
  </code></pre>
  
  <p>This code is working fine and on click of the link the file opens, but I want to open it in a new tab instead of the same tab. I have already checked with using <strong>target=_blank</strong>, but no luck. Is there any way we can do through <strong>content-"options"</strong> or any other solution.</p>
  
  <p>I am using <strong>Django</strong> as my server side scripting.</p>