Postingan lainnya
Laravel & MPDF
Gimana caranya manggil/gunain library MPDF di laravel? MPDF nya sudah saya install lewat composer, terus udah ada di folder vendor...
0
1 Jawaban:
Usage
The simplest usage (since version 7.0) of the library would be as follows:
<?php
require_once __DIR__ . '/vendor/autoload.php';
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML('<h1>Hello world!</h1>');
$mpdf->Output();
This will output the PDF inline to the browser as application/pdf Content-type.
0