Jump to content

Invoice customisation


Xeonia

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...
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.

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