vikrambalye / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

How to Change Background Color of Header and footer and how to give padding #353

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What would you like dompdf to do:

Hi, I am trying to change background color of header and footer of every page 
but did not get how to do that.

Do you have an example:

Original issue reported on code.google.com by asif.ja...@my-take.com on 14 Sep 2011 at 10:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Do you apply headers and footers with inline PHP ?
If so, you can add a background with a filled rectangle drawn before the text :

  $color = array(1, 0.9, 0.9);
  $pdf->filled_rectangle(0, $y, $w, 30, $color);

Original comment by fabien.menager on 19 Sep 2011 at 5:56

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00