title: How to create link for Mpdf?
body: <p>I have one travel portal when user can book the tour . After the successful payment I am generating receipt in PDF form using MPDF.</p>
  
  <p>After the successful payment users redirecting to my 'success.php' page where I am generating PDF. But the problem is whole success.php page is displaying as one PDF page . but I wanted to display the PDF as downloadable link.</p>
  
  <p>my code is </p>
  
  <pre><code>       $template_data = str_replace('##WORDS##', $amonut_words, $template_data);
  
         ob_end_clean(); 
  
         include 'MPDF57/mpdf.php';
  
         $mpdf=error_reporting(E_STRICT);
         $mpdf=new mPDF('win-1252','A4','','',15,10,16,10,10,10);
         $mpdf-&gt;Bookmark('Start of the document');
         $mpdf-&gt;SetDisplayMode('fullpage');
         $mpdf-&gt;WriteHTML($template_data);
         $mpdf-&gt;Output();
  
         exit();
  </code></pre>