webchambers1 Posted September 6, 2020 Share Posted September 6, 2020 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. Quote Link to comment https://forums.phpfreaks.com/topic/311437-dompdf-output-not-printing/ Share on other sites More sharing options...
requinix Posted September 6, 2020 Share Posted September 6, 2020 What's the HTML you're trying to render? Quote Link to comment https://forums.phpfreaks.com/topic/311437-dompdf-output-not-printing/#findComment-1581187 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.