webhostingdesign Posted December 3, 2007 Share Posted December 3, 2007 where is this file so I can change it to my logo? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted December 3, 2007 WHMCS CEO Share Posted December 3, 2007 The file is "images/logo.jpg" Matt 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted December 9, 2007 Share Posted December 9, 2007 Can we change the colors of the 'unpaid' and 'paid' shown on the page? I don't like that being greyed out, I think it would be better if it were red for 'unpaid' and green for 'paid'. 0 Quote Link to comment Share on other sites More sharing options...
dutchnet Posted December 9, 2007 Share Posted December 9, 2007 yes you can $pdf->SetTextColor(128 ) ; sets the color for the string of text to be printed have a look here for more info about fpdf: http://www.fpdf.org/?lang=en 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted December 12, 2007 Share Posted December 12, 2007 This is what I did: } elseif ($status=="Unpaid") { $pdf->SetTextColor(204 ) ; $pdf->SetXY(120,80); $statustext = $_LANG["invoicesunpaid"]; } elseif ($status=="Paid") { $pdf->SetTextColor(119,149 ) ; $pdf->SetXY(120,80); $statustext = $_LANG["invoicespaid"]; } However it does not work as when invoices are viewed, the display a blank page. What am I doing wrong here? 0 Quote Link to comment Share on other sites More sharing options...
dutchnet Posted December 13, 2007 Share Posted December 13, 2007 Only thing I can see what might cause a problem is : $pdf->SetTextColor(119,149 ) ; should probably read $pdf->SetTextColor(0, 119,149 ) ; or $pdf->SetTextColor(119 ) ; SetTextColor accepts 1 or three values SetTextColor(int r [, int g, int b]) Parameters r If g and b are given, red component; if not, indicates the gray level. Value between 0 and 255. g Green component (between 0 and 255). b Blue component (between 0 and 255). 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted December 13, 2007 Share Posted December 13, 2007 I did that but it still does not work. 0 Quote Link to comment Share on other sites More sharing options...
dutchnet Posted December 14, 2007 Share Posted December 14, 2007 hi, sorry for the late reply but I was kind of extra busy, just tried it again in version 3.5 and it works very well overhere, are you sure you did not make any typos? If so sned me your pdfconfig.php if you want me to have a look at it 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted December 14, 2007 Share Posted December 14, 2007 Can you just reply with a sample of the config where you made the modifications please? 0 Quote Link to comment Share on other sites More sharing options...
arhost Posted December 14, 2007 Share Posted December 14, 2007 Try: if ($status=="Cancelled") { $pdf->SetTextColor(173, 173, 173); $pdf->SetXY(80,80); $statustext = $_LANG["invoicescancelled"]; } elseif ($status=="Unpaid") { $pdf->SetTextColor(205,38,38); $pdf->SetXY(120,80); $statustext = $_LANG["invoicesunpaid"]; } elseif ($status=="Paid") { $pdf->SetTextColor(154,205,50); $pdf->SetXY(120,80); $statustext = $_LANG["invoicespaid"]; } $pdf->SetFont('Arial','B',40); //$pdf->SetTextColor(245); //$pdf->SetTextColor(173, 173, 173); $pdf->Write(5,strtoupper($statustext)); 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted December 21, 2007 Share Posted December 21, 2007 Thanks, that worked like a charm. 0 Quote Link to comment Share on other sites More sharing options...
BionHostStan Posted December 22, 2007 Share Posted December 22, 2007 the link to the fpdf was helpful too. thank you 0 Quote Link to comment Share on other sites More sharing options...
4Serv Posted March 2, 2008 Share Posted March 2, 2008 This is what I did: However it does not work as when invoices are viewed, the display a blank page. What am I doing wrong here? Thanks it works for me. Only for me $pdf->SetXY(80,80); (Dutch words are to long) 0 Quote Link to comment Share on other sites More sharing options...
shagotik Posted February 15, 2011 Share Posted February 15, 2011 Whih File I will change ? Where Is the File ? Try: if ($status=="Cancelled") { $pdf->SetTextColor(173, 173, 173); $pdf->SetXY(80,80); $statustext = $_LANG["invoicescancelled"]; } elseif ($status=="Unpaid") { $pdf->SetTextColor(205,38,38); $pdf->SetXY(120,80); $statustext = $_LANG["invoicesunpaid"]; } elseif ($status=="Paid") { $pdf->SetTextColor(154,205,50); $pdf->SetXY(120,80); $statustext = $_LANG["invoicespaid"]; } $pdf->SetFont('Arial','B',40); //$pdf->SetTextColor(245); //$pdf->SetTextColor(173, 173, 173); $pdf->Write(5,strtoupper($statustext)); 0 Quote Link to comment Share on other sites More sharing options...
omnigenus Posted February 16, 2011 Share Posted February 16, 2011 Whih File I will change ? Where Is the File ? It's a PDF template file -> invoicepdf.tpl Make a backup before you start changing it 0 Quote Link to comment Share on other sites More sharing options...
nay27uk Posted February 19, 2011 Share Posted February 19, 2011 why does it use RGB coding instead of HEX #cccccc style coding 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.