webresellers Posted August 31, 2008 Share Posted August 31, 2008 I have replaced the default pdf logo with my logo but it seems to stretch it out really large and it looks pixelated. How can I control the size on the image in the pdfconfig.php? Sytax example would be awesome. Thanks- 0 Quote Link to comment Share on other sites More sharing options...
InterServed Posted September 8, 2008 Share Posted September 8, 2008 Exactly what i'm looking for ) 0 Quote Link to comment Share on other sites More sharing options...
SindreM Posted September 8, 2008 Share Posted September 8, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
kship Posted December 28, 2008 Share Posted December 28, 2008 I am having this issue with no luck yet. Has anyone fixed this yet? 0 Quote Link to comment Share on other sites More sharing options...
dryline Posted January 5, 2009 Share Posted January 5, 2009 I'm having a similar issue. I created a logo the exact dimensions of the default logo that was there, and no matter what I do, it looks like crap on the pdf, likes it's recompressing the image or something. 0 Quote Link to comment Share on other sites More sharing options...
marquis_ce Posted January 6, 2009 Share Posted January 6, 2009 Still waiting a solution too 0 Quote Link to comment Share on other sites More sharing options...
AndrewMKP Posted January 6, 2009 Share Posted January 6, 2009 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 0 Quote Link to comment Share on other sites More sharing options...
dryline Posted January 9, 2009 Share Posted January 9, 2009 I must be dense or unlucky. Ever time I try to put it in exactly as shown there, I get: Parse error: syntax error, unexpected T_LNUMBER in /home/drylineh/public_html/secure/includes/pdfconfig.php on line 4 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted January 9, 2009 Share Posted January 9, 2009 @AndrewMKP: Arrr... what did I do? 0 Quote Link to comment Share on other sites More sharing options...
AndrewMKP Posted January 11, 2009 Share Posted January 11, 2009 @sparky: I asked your advice on this as well over MSN IM... Dryline, what does it say on line 4? 0 Quote Link to comment Share on other sites More sharing options...
dryline Posted January 12, 2009 Share Posted January 12, 2009 Exactly what was in quotes in your post #7 in this thread. I had the default line, I made it look exactly like you had it there, and got the error. I quadruple checked it and can't seem to get it to work. 0 Quote Link to comment Share on other sites More sharing options...
AndrewMKP Posted January 12, 2009 Share Posted January 12, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted January 12, 2009 Share Posted January 12, 2009 You can always have a look at this thread: http://forum.whmcs.com/showthread.php?p=82196 This post specifically: http://forum.whmcs.com/showthread.php?p=82196#post82196 0 Quote Link to comment Share on other sites More sharing options...
carlsilver Posted January 14, 2009 Share Posted January 14, 2009 we have our logo in a vector PDF format - anybody know how i can make it use that instead of the dodgy jpeg? 0 Quote Link to comment Share on other sites More sharing options...
beet Posted April 9, 2009 Share Posted April 9, 2009 @AndrewMKP - Adding that extra param to the $pdf->Image() function worked great. Thanks for the tip! 0 Quote Link to comment Share on other sites More sharing options...
conrad Posted February 23, 2011 Share Posted February 23, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
nay27uk Posted February 23, 2011 Share Posted February 23, 2011 its in templates/yourtemplate the one your using/invoicepdf.tpl change the setting as in the second post on this forum I added 25 to the end 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.