title: mpdf download not working on server using laravel
body: <pre><code>$pdf = PDF::loadView('pages.qrdownload', compact('qr_code'));
  return $pdf-&gt;download('event_qrcode.pdf');
  </code></pre>
  
  <p>When I try to download the pdf file using m pdf package, in rare case pdf was download otherwise pdf download was cancelled.</p>
  
  <p><a href="https://i.stack.imgur.com/Oi7Zm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Oi7Zm.png" alt="this pic shows the error of cancelled pdf."></a></p>
  
  <p><a href="https://i.stack.imgur.com/2Vair.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Vair.png" alt="enter image description here"></a></p>
  
  <p>Above pic shows the error of cancelled pdf.</p>