Jump to content

PDF Invoice - Padding for Description + Amount Row


othellobloke

Recommended Posts

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?

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated