I am doing a site for travel agency.it has a report creation module,reports are saved in pdf format i have used dompdf for pdf creation .I need the same pdf should contain two reports .I got the two reports in same pdf but the 2nd one should starts in a new page. how could i do this?
<?php
require_once("dompdf_config.inc.php");
$html =
'<html><body>'.
'<p>Put your html here, or generate it with your favourite '.
'templating system.</p>'.
'</body></html>';
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("sample.pdf");
?>
I have used the above code but the $html variable used different.Any help will be appreciated.
You can use
to create new page.
//edit full snippet of code: