MPDF()

> MPDF component is for PDF file download

$mpdf = new mpdf();
$mpdf = new mpdf('ja');
$mpdf = new mpdf('utf-8');


$headerPDF = $footerPDF = "<HTML>";
$mpdf->SetHTMLHeader($headerPDF);

$mpdf->SetHTMLFooter($footerPDF);

$mpdf -> SetTopMargin(40);
$mpdf->setAutoTopMargin;

$fileSave = "order-".$orderData['id']."-".date('Ymdhis').".pdf";

$mpdf->Output($fileSave, "D");
$mpdf->Output($fileSave, "F");
$mpdf->Output();

Share this

Related Posts

Previous
Next Post »