title: Display .pdf doecument from folder in php
body: <p>I want to display <code>.pdf</code> file in <code>codeigniter</code> using <code>mpdf</code>. </p>
  
  <p>Iframe, object and embed tag is not working.</p>
  
  <p>Scenario:</p>
  
  <p>-click on button pdf file open in new tab. now if .jpg file then it is showing in pdf but if it is ".pdf" file not showing in that open pdf file.</p>
  
  <p>Here is my PDF structure:-</p>
  
  <pre><code>        $body="";
          $this-&gt;load-&gt;library('mpdf/mpdf.php');
          $mpdf=new mPDF();
          $mpdf-&gt;SetDisplayMode('real');
          $mpdf-&gt;SetAutoPageBreak(true);
  
          $body.=$this-&gt;load-&gt;view('test.php',$data,true);
          }
          $mpdf-&gt;WriteHTML($body);
  
          $mpdf-&gt;SetDisplayMode('fullpage');
  
          $mpdf-&gt;list_indent_first_level = 0; 
  
          $mpdf-&gt;Output();
  </code></pre>