Jump to content

dompdf output not printing


webchambers1

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.