-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstruct.php
More file actions
25 lines (21 loc) · 547 Bytes
/
Copy pathstruct.php
File metadata and controls
25 lines (21 loc) · 547 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
* Html2Pdf Library - example
*
* HTML => PDF converter
* distributed under the OSL-3.0 License
*
* @package Html2pdf
* @author Laurent MINGUET <webmaster@html2pdf.fr>
* @copyright 2017 Laurent MINGUET
*/
ob_start();
include "cetak_nota.php";
$content = ob_get_clean();
$date=date('d-m-Y');
require __DIR__.'/vendor/autoload.php';
use Spipu\Html2Pdf\Html2Pdf;
$html2pdf = new Html2Pdf('P', 'A5', 'en');
$html2pdf->setDefaultFont('Arial');
$html2pdf->writeHTML($content);
$html2pdf->output('example.pdf');