Jump to content

WHMCS logo in pdf output?


PureEvil

Recommended Posts

Quick question, I haven't "yet" purchased the upgrade to WHMCS to remove the "Powered by WHMCompleteSolution" statement, does this purchase also remove the WHMC logo within the PDF invoice output? (upper left square blue logo)

 

If no, is there a way to change that logo to my own that I may just be missing?

 

As always, thanks for any and all help...

 

Jayson

Link to comment
Share on other sites

  • 1 month later...

For me the pdf increases the image size and that throws away the quality.:(

 

I have not had a lot of time to go and see where the code is that stretches the image.

 

if you only have big shapes in the image it looks OK, but as soon as there are small shapes it go pear shaped.

 

Any one that already changes the code to not stretch the image?:)

Link to comment
Share on other sites

  • 4 weeks later...

w

Width of the image in the page. If not specified or equal to zero, it is automatically calculated.

h

Height of the image in the page. If not specified or equal to zero, it is automatically calculated.

 

 

What units? Pixels? Inches?

 

 

Edit: it seems that the dimensions are in "points".

Edited by Gears
Link to comment
Share on other sites

How to do this in Photoshop:

 

1.) Open your logo .psd - the resolution should be 300DPI

2.) Crop the logo so there is some equal white space above, below, left, and right of the actual logo. If it's already cropped too tight, then add the whitespace.

3.) Go to Image > Image Size and set the image size to 300px in width and constrain the proportions

4.) Go to Image > Canvas Size and change the units to Points

5.) Set the width to 65 and the height to 20 (depending on the height of your logo, you may have to choose a number larger than 20)

6.) Save the file to whmcs_folder/images/logo.jpg

7.) Open whmcs_folder/includes/pdfconfig.php

8.) Find $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25); at the top

9.) Change it to $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25,65,20,jpg);

 

Note: This is the method I used because I wasn't sure if fpdf would acknowledge decimal numbers in the width/height.

Link to comment
Share on other sites

  • 6 months later...

I did this using FireWorks, but quite honestly I just played the JPG and the PHP file until it looked almost right :?. It's still not 100%, but I can't spend any more time on it. Very frustrating... but I've had problems going from web to PDF in the past so it doesn't surprise me.

Link to comment
Share on other sites

  • 4 weeks later...

Same here, I tried 300dpi and the image quality is still ugly. And why does it still resort to the 'your logo here' when it could've just used the main logo field in the general settings? The image quality is bad enough and I just had to keep updating the logo.jpg each time I upgrade which is quite a chore.

Link to comment
Share on other sites

  • 7 months later...
How to do this in Photoshop:

 

1.) Open your logo .psd - the resolution should be 300DPI

2.) Crop the logo so there is some equal white space above, below, left, and right of the actual logo. If it's already cropped too tight, then add the whitespace.

3.) Go to Image > Image Size and set the image size to 300px in width and constrain the proportions

4.) Go to Image > Canvas Size and change the units to Points

5.) Set the width to 65 and the height to 20 (depending on the height of your logo, you may have to choose a number larger than 20)

6.) Save the file to whmcs_folder/images/logo.jpg

7.) Open whmcs_folder/includes/pdfconfig.php

8.) Find $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25); at the top

9.) Change it to $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25,65,20,jpg);

 

Note: This is the method I used because I wasn't sure if fpdf would acknowledge decimal numbers in the width/height.

 

I followed this to a "T". No luck. It still looks terrible.

Link to comment
Share on other sites

  • 1 month later...

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