📜  如何在 php 代码示例中使用 doompdf 创建 pdf

📅  最后修改于: 2022-03-11 14:54:40.247000             🧑  作者: Mango

代码示例1
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); ?>