vendredi 30 novembre 2018

Long standing while trying to create a PDF in PHP

I am using barryvdh/laravel-dompdf

$pdf = PDF::loadView('myview', $data);                      
//return $pdf->download('pdfview.pdf');                          
return $pdf->stream($nombre_archivo);

I am having a problem while trying to use the stream method $pdf->stream($nombre_archivo); my app keeps loading forever.

If i use the download method $pdf->download('pdfview.pdf'); works fine, but I need to use the stream method.

if you could help me, I will be very grateful.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2ADGuld
via IFTTT

Aucun commentaire:

Enregistrer un commentaire