title: How to view pdf while working with mpdf?
body: <p>I am working on codeignitor and doing work for generating report. But my problem is that everytime i ve to download pdf file to view anything which is taking seriously too much time.</p>
  
  <p>Here is the link of mpdf manual <a href="http://www.mpdfonline.com/repos/mpdfmanual.pdf" rel="nofollow noreferrer">http://www.mpdfonline.com/repos/mpdfmanual.pdf</a></p>
  
  <p>here is my code which i am working. If somebody know something plz help:</p>
  
  <p><strong>Controller:</strong>
  Report.php</p>
  
  <pre><code>public function index(){
      $html =$this-&gt;load-&gt;view('report/index', $this-&gt;data, true);
      $htmls=$html;
      $this-&gt;load-&gt;library('Mpdf_land');    
      $pdfFilePath = 'Public_Opportunities_Detail('.date('Y-m-d H:i:s').').pdf';                  
      $this-&gt;mpdf_land-&gt;pdf-&gt;WriteHTML($htmls);
      $this-&gt;mpdf_land-&gt;pdf-&gt;Output(UPLOAD_REPORT_PATH.$pdfFilePath.'', "D");
  }
  </code></pre>
  
  <p><strong>View File</strong>: index.php</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
      &lt;p&gt;hello &lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>