Jump to content

Invoice Customization Help


Marcell

Recommended Posts

Hey,

I've almost finished customizing the PDF Invoice, although I met with a few difficulties and seeking for a little bit of help.

Can you please advise on how to make the Company and Client details into the same row? So the Company details goes to left meanwhile Client is on the right side.
Also what would be the best way to make the invoice items have same height? I know it is kind of difficult because of the content, but still wonder

I've attached the pastebin for the PDF PHP code and the actual returned PDF

https://pastebin.com/DkaasBd0

 

 

Thanks

BIT _ 9.pdf

Link to comment
Share on other sites

20 minutes ago, Marcell said:

Can you please advise on how to make the Company and Client details into the same row? So the Company details goes to left meanwhile Client is on the right side.

there's a SetXY missing from the code around the Company Details...

$pdf->SetTextColor(0);
# Company Details
$pdf->SetXY(15, 58);
$pdf->SetFont($pdfFont, '', 8);
$pdf->SetTextColor(102,102,102);

that '58' figure is the Y (vertical) value - so that might have to be slightly adjusted to match the location of the client details on the right.

22 minutes ago, Marcell said:

Also what would be the best way to make the invoice items have same height? I know it is kind of difficult because of the content, but still wonder

tricky I would have thought - because the line items would be of various lengths, e.g a hosting with configurable options would be far bigger than a domain registration...

I suppose you could limit the number of visible lines in each item to x, but then you're potentially removing details that the invoice should state.

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