whmcexperts Posted August 16, 2014 Share Posted August 16, 2014 I noticed it is not possible to have footer in the PDF invoices any more. Few months ago, in older version, I was able to have page number etc in footer. Now some text appears at the end of invoice "PDF Generated on xxx", but there is nothing shown on footer. Any suggestion how to put something on footer that appears on every page? 0 Quote Link to comment Share on other sites More sharing options...
whmcexperts Posted August 17, 2014 Author Share Posted August 17, 2014 (edited) We are able to show some content in footer by putting this statement on top of the tpl file: $pdf->setPrintFooter(true); However, now the content of footer overlaps over the body content on the lower side of the page. Probably we need to change page height now. How to do that? Anybody please? Edited August 17, 2014 by whmcexperts 0 Quote Link to comment Share on other sites More sharing options...
mbit Posted August 18, 2014 Share Posted August 18, 2014 You need to set where you want your page breaks to occur. For example, if your footer is 20mm high, then you need to break your page somewhere before that. Add this to your pdf template file and set the number to something suitable: $pdf->SetAutoPageBreak(true,20); Also, you can extend TCPDF class and change Header and Footer to whatever you need. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.