View Full Version : Invoice customisation
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??
Hey,
You can customize invoices in the WHMCS admin area under Email Templates as well as whmcs/templates/TEMPLATE/invoices.tpl
From,
Adam
And the PDF invoice can be customised in the file "includes/pdfconfig.php"
jrnetwork
02-21-07, 04:55 AM
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.
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.
jrnetwork
02-21-07, 05:11 AM
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....
bennyboy64
04-09-07, 09:31 AM
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.