Hello,
I have a sample shop that generates a receipt on products purchased. When a user checks out it generates a receipt as a pdf file using dompdf.
If i select a few products and generate a pdf file its ok it shows the products and total price, however if i choose lots of products, too many to fit on one page then when i generate a pdf it only show the first page the rest of the products and the total price are not displayed on page 2 ?
Here is the bit of the code that generates the pdf
sorry i am not very experienced in this stuff i am trying to learn !
$options = new Dompdf\Options();
$options->set('isRemoteEnabled', true);
$dompdf = new Dompdf\Dompdf($options);
$dompdf->loadHtml($html);
$dompdf->render();
$output = $dompdf->output();
$info = file_put_contents("../../files/" . $filepath . $filename, $output);
return array($filename,$filepath);
any advice please.