📅  最后修改于: 2022-03-11 14:54:40.247000             🧑  作者: Mango
Hello World!A PDF generated by DomPDF library.
';
$dompdf->loadHtml($html);
$dompdf->setPaper('A4', 'landscape');
$dompdf->render();
// write pdf to a file
$pdf = $dompdf->output();
file_put_contents("newfile.pdf", $pdf);
?>