Xeonia Posted February 14, 2007 Share Posted February 14, 2007 Hi, Would be nice to see, if you have customised your invoice templates?! Also would like to have some tips for customisation and if you have some template to share?? Also would like to know, if both of the invoices can be done identical?? 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted February 14, 2007 Share Posted February 14, 2007 Hey, You can customize invoices in the WHMCS admin area under Email Templates as well as whmcs/templates/TEMPLATE/invoices.tpl From, Adam 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 14, 2007 WHMCS CEO Share Posted February 14, 2007 And the PDF invoice can be customised in the file "includes/pdfconfig.php" 0 Quote Link to comment Share on other sites More sharing options...
jrnetwork Posted February 21, 2007 Share Posted February 21, 2007 I have done a new image for the top right of my PDF invoice, which I am also using for my email templates and also the pop up printer versions of the emails & invocies etc. The default image is the WHM logo which is 175x78px in size. My new one is 278x53px in size. When I put my new image in its place, it is fine everywhere except on the PDF invoice. I can not find where the image size properties are for the invoice, and therefore the image looks squashed up. Is anyone able to shed light on the location? Cheers. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted February 21, 2007 Share Posted February 21, 2007 Hey, You have to edit the PDF invoice file and change the settings to fit with the size of your logo. It can be found in, whmcs/includes/pdfconfig.php From, Adam P.S. You should backup that file in case you change settings and the whole PDF invoice comes to a crashing halt. 0 Quote Link to comment Share on other sites More sharing options...
jrnetwork Posted February 21, 2007 Share Posted February 21, 2007 Yes I looked there, but the figures on that line only seem to affect the location of the image on the pdf, not the size. I tried changing them and the logo was then postioned elsehwere on the page, still squashed up.... 0 Quote Link to comment Share on other sites More sharing options...
bennyboy64 Posted April 9, 2007 Share Posted April 9, 2007 Yes I looked there, but the figures on that line only seem to affect the location of the image on the pdf, not the size. I tried changing them and the logo was then postioned elsehwere on the page, still squashed up.... You need to add another parameter to the the image line, see: fpdf.org/en/doc/image.htm for more information. Change this: $pdf->Image(dirname(__FILE__).'/../images/logo.jpg',80,30,50); Into this: $pdf->Image(dirname(__FILE__).'/../images/logo.jpg',80,30,50,25); In the above example: 80 = horizontal 30 = vertical 50 = width 25 = height You need to adjust accordingly. 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.