othellobloke Posted August 19, 2011 Share Posted August 19, 2011 Hi... I'm using the default PDF invoice template as it works brilliantly. I've managed to put padding on the table header rows, and the totals and subtotal rows. But for the life of me I can't apply that same padding to the rows with each item on the invoices. Can someone help me please? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted August 31, 2011 Share Posted August 31, 2011 Though I haven't needed to do this, I'd imagine it's in this section of invoicepdf.tpl: foreach ($invoiceitems AS $item) { $rowcount = $pdf->getNumLines($item['description'], 140); $pdf->MultiCell(140,$rowcount * 5,$item['description'],1,'L',0,0); $pdf->MultiCell(40,$rowcount * 5,$item['amount'],1,'C',0,0); $pdf->Ln(); } Surely if you were able to add what you needed in the other section(s), you could do this here as well? Perhaps this will point you in the right direction: http://www.tcpdf.org/examples/example_005.phps 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.