pdf-l4 icon indicating copy to clipboard operation
pdf-l4 copied to clipboard

How to add header & footer

Open dieka2501 opened this issue 12 years ago • 2 comments

Hi, how to add header and footer in every single page? How to add number page too?

Thanks

dieka2501 avatar Apr 22 '14 03:04 dieka2501

Hi.

You can check these links : http://ibmphp.blogspot.fr/2012/11/dompdf-every-page-with-header-and-footer.html http://www.digitaljunkies.ca/dompdf/faq.php#footers

thujohn avatar Apr 24 '14 21:04 thujohn

I saw the 2 links that you have. But I can not get it to work. In my controller i have a function like this.

public function getPdf(){

$html = View::make('waste_handling_form.pdf'); $pdf = PDF::load($html,'A4','protrait'); return $pdf->show();

}


And in my view I have regular html code and I am extending a blade layout. Where should i get the page number?

Thanks,

felipeblan avatar Oct 02 '14 19:10 felipeblan