CodeIgniter Forums
dompdf header/footer - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: dompdf header/footer (/showthread.php?tid=28543)



dompdf header/footer - El Forum - 03-14-2010

[eluser]nosonoso[/eluser]
I am using dompdf to generate my PDF documents. Great class and want to advice using this plug-in! Though the support by CI is rather basic I didn't find any information about creating headers and footers in the PDF files itself.

At this moment it's just a stream of html.
Code:
$this->load->plugin('to_pdf');
     // page info here, db calls, etc.    
     $html = "<html> ETC .. </html>"
     pdf_create($html, 'filename');

maybe there is a sort of function to give my document a header title and a footer that will appear on each page?