Jump to content

pdf logo.gif image size


webresellers

Recommended Posts

You can add a third parameter to the Image() function, like this:

$pdf->Image(ROOTDIR.'/images/logo.gif',20,25, 45);

 

This allows you to specify a width for the image. The height will be adjusted accordingly. I am not sure which measuring unit is used, so you just have to try different values until you're satisfied.

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...

Try changing the following in your includes folder pdfconfig.php and also your quotepdf.tpl that is located in your current template folder.

 

Find the line:

 

$pdf->Image(ROOTDIR.'/images/logo.gif',20,25);

and change it to

$pdf->Image(ROOTDIR.'/images/logo.gif',20,25, 45);

 

This worked for me! Thanks to Sparky and SindreM :twisted:

Link to comment
Share on other sites

Hmm, try re-creating your image as a smaller size then and then upload it. Note that it will not work if you simply downscale it, you need the original scaleable canvas or a program that will shrink it properly. If that doesn't work try opening a support ticket with WHMCS referencing this ticket to show you have tryed, however I believe that re-uploading a different sized image will work.

Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...
You can add a third parameter to the Image() function, like this:

$pdf->Image(ROOTDIR.'/images/logo.gif',20,25, 45);

 

This allows you to specify a width for the image. The height will be adjusted accordingly. I am not sure which measuring unit is used, so you just have to try different values until you're satisfied.

 

Perfect. Thank you.

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