Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once("dompdf/dompdf_config.inc.php");
- $Test='<html>
- <head>
- <title>Insert title here</title>
- </head>
- <body>
- Sample Text
- </body>
- </html>';
- $dompdf = new DOMPDF();
- $dompdf->load_html($Test);
- $dompdf->render();
- $dompdf->stream("test.pdf");
- echo $dompdf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement