0

I created PDF file using FPDF in laravel. I used string output destination to preview pdf file from blade using iframe.

controller.php

$output = $pdf->Output('','S');
$output = base64_encode($output);
return $output;
exit;

blade.php

<iframe src="data:application/pdf;base64,{{ $output }}" type='application/pdf' width="100%" height="600px"></iframe>

How I can change the default filename when try to download it ?

Dika Aw
  • 21
  • 6
  • 1
    Does this answer your question? [Set the default save as name for a an or – Veve Oct 26 '20 at 14:25
  • @Veve I've tried and still haven't changed anything – Dika Aw Oct 27 '20 at 00:12

0 Answers0