tmyonline Posted December 11, 2009 Share Posted December 11, 2009 Guys, I'm not sure if this question falls under PHP. Please direct my question to the right section if this is not. Suppose I have some large data stored in MySQL. I need to display this data in a PDF format, in such a way that the header, including logo, and footer appear on every page. The data itself does not contain any information on, or link to, header, logo, footer. Basically, when my manager clicks on a link on the browser, it will display a PDF document so that he can bring it to meetings. Therefore, this data needs to have official letter head, logo, footer,... on every page. So the challenge here is how to break up the data into multiple pages of the same length and insert the header, logo, and footer in between. Any idea ? Thanks. Link to comment https://forums.phpfreaks.com/topic/184795-how-to-print-a-document-in-pdf-with-header-footer-on-every-page/ Share on other sites More sharing options...
nozai Posted December 11, 2009 Share Posted December 11, 2009 I use LaTeX, FPDF, and FPDI to achieve this. FPDF would be your simplest PHP-based solution, but it does not give you the formatting capabilities of LaTeX. FPDI lets me import and merge PDFs and add logos, etc on top. Link to comment https://forums.phpfreaks.com/topic/184795-how-to-print-a-document-in-pdf-with-header-footer-on-every-page/#findComment-975550 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.