Marcell Posted November 14, 2020 Share Posted November 14, 2020 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 PDFhttps://pastebin.com/DkaasBd0 Thanks BIT _ 9.pdf 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 14, 2020 Share Posted November 14, 2020 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. 1 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.