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.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Gz71q6
via IFTTT
Aucun commentaire:
Enregistrer un commentaire