troykelly Posted January 18, 2007 Share Posted January 18, 2007 Apologies if this is already covered, but I have searched the manual and these forums and can not find a solution. I am trying to see where I can set the header image displayed on the PDF's - at the moment it is the WHM logo. Also, is it possible to edit / add content to the footer? 0 Quote Link to comment Share on other sites More sharing options...
troykelly Posted January 18, 2007 Author Share Posted January 18, 2007 Ok, I answered the first part of my own question searching the manual properly... Modifying the Logo The logo displayed on the PDF invoices is located in the images folder. To change this to your own logo simply upload your logo to the images folder and name it "logo.jpg". 0 Quote Link to comment Share on other sites More sharing options...
troykelly Posted January 18, 2007 Author Share Posted January 18, 2007 So now my question becomes, how can I make the width of the logo at the top more closely match the width of my image? Oh... and still from before - how do I modify the footer? 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 18, 2007 Share Posted January 18, 2007 have you looked into editing includes/pdfconfig.php? 0 Quote Link to comment Share on other sites More sharing options...
generic Posted January 18, 2007 Share Posted January 18, 2007 yes, you can change everything in the pdf. i also changed "unpaid" to "we will process this invoice on the due date". 0 Quote Link to comment Share on other sites More sharing options...
jrnetwork Posted February 21, 2007 Share Posted February 21, 2007 The file: includes/pdfconfig.php has this in it: //Logo $pdf->Image(dirname(__FILE__).'/../images/logo.jpg',140,8,50); This does not set the dimensions of the image... I need to be able to change the width and height of the image, as it seems to be fixed to the size of the WHM logo. Ther other two places where I am now using this logo, in the email templates and the printable invoice, the image is fine, but I can not find how to rescale the one in the pdf. I did try changing the numbers in the line above, but they simply changed the location of the image, not it's size. hope someone can help. 0 Quote Link to comment Share on other sites More sharing options...
webarama-gil Posted March 28, 2007 Share Posted March 28, 2007 I had this problem too, so I looked around to find what pdf creation class was being used, and I'm pretty sure it's FPDF. There's a handy reference manual at their site (fpdf.org/en/doc/index.php) Specifically the Image page (fpdf.org/en/doc/image.htm), which shows that the 4th argument (the number 50 in your code) is the width, and there's an optional 5th argument for height. If height isn't set, it's worked out automatically (and vice-versa). 0 Quote Link to comment Share on other sites More sharing options...
phillyshark Posted August 20, 2007 Share Posted August 20, 2007 yes, you can change everything in the pdf. i also changed "unpaid" to "we will process this invoice on the due date". Hey generic or anyone else, I can't seem to find where to change the text for the "Unpaid" put on the invoice. I tried in the Language folder english.txt and that only changed it within the client area on and not on the actual pdf invoice. On the "pdfconfig.php" I see "Which is “$pdf->Write(5,strtoupper($status));”", but don't know how to edit this file to have the invoice say "Open" instead of "Unpaid". Any assistance here would be appreciated! Paul 0 Quote Link to comment Share on other sites More sharing options...
generic Posted August 21, 2007 Share Posted August 21, 2007 in the latest version matt removed the graphical images for unpaid, etc and they are now textual. i have not found where this text is yet, its probably in the language file or something. 0 Quote Link to comment Share on other sites More sharing options...
rmarkin Posted August 31, 2007 Share Posted August 31, 2007 I had this problem too, so I looked around to find what pdf creation class was being used, and I'm pretty sure it's FPDF.There's a handy reference manual at their site (fpdf.org/en/doc/index.php) Specifically the Image page (fpdf.org/en/doc/image.htm), which shows that the 4th argument (the number 50 in your code) is the width, and there's an optional 5th argument for height. If height isn't set, it's worked out automatically (and vice-versa). That "50" in the code is actually the height and since there is no width set it will simply proportion your logo down to 50 pixels high and whatever the proportionate width would be. Here's what I did to get my logo to render at the correct size: Simply change the "50" to whatever the height of your logo is. Worked good for me anyway. 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.