Previously i used mpdf version 8.6.For that i used laravel framework 5.4, Top of controller
use mPDF\mPdf;
In Controller constructor,
$mpdf = new mpdf(['tempDir' => __DIR__ . '/custom/temp/dir/path']);
In function used
$mpdf = new mpdf();
$mpdf->SetHTMLHeader($this->header($data),'1', true);
$mpdf->SetHTMLFooter($this->footer());
$mpdf->AddPage('p','','','','',10,10,37,20,10,10);
$mpdf->WriteHTML($html);
$mpdf->Output();
Due to my server version 5.6 i have to use mpdf 6.1.0 version. For that version using the same code i get error
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2UmwPux
via IFTTT
Aucun commentaire:
Enregistrer un commentaire