title: Auto download mpdf generated pdf document
body: <p>I am newbie for mpdf so don't mind if you feel this question is stupid one:), </p>
  
  <p>I generated the pdf document usinf mPDF class , the issue is that after pdf generated the browser opens it in tab . But i want it not to open but auto download , My code is like follwing..</p>
  
  <pre><code>include("../mpdf.php");
  $html="my HTML code here !";
  
  $mpdf=new mPDF('c','A4','','',32,25,27,25,16,13); 
  $mpdf-&gt;SetDisplayMode('fullpage');
  $mpdf-&gt;list_indent_first_level = 0; 
  $stylesheet = file_get_contents('mpdfstyletables.css');
  $mpdf-&gt;WriteHTML($stylesheet,1);
  $mpdf-&gt;WriteHTML($html);
  $mpdf-&gt;Output('mpdf.pdf');
  </code></pre>
  
  <p>I am expecting that there will be a function to download in the mpdf class like <code>$mpdf-&gt;download</code> instead <code>$mpdf-&gt;Output('mpdf.pdf')</code>.I searched alot for this type solution but in vain i could't find any .</p>