jeudi 20 décembre 2018

Laravel 5 PDF footers with blade show blank

I use laravel-snnapy for export pdf.

I want to add footer on my pdf file but when I add footer-html on my code show me blank pdf file.

public function exportPdf($id)
{
     $pdf = PDF::loadView('TestView::pdf', [my_array]);
     $pdf->setOption('footer-html', View('TestView::pdf_footer'));
     $pdf->setOrientation('landscape');
     $pdf->setPaper('a6');
}

And when I comment this code $pdf->setOption('footer-html', View('TestView::pdf_footer')); show me correct export pdf file.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire