It took some time to understand, that the float values have to be beetween beetween 0 and 1. If you use graphic tools like color-pickers etc. it is necessary to convert the RGB values frome the scale of 1 to 255 to 0 to 1.
Use this small function to make your life easier:
function pdf_setrgbcolor_fill_better($intPdfObj, $intRed, $intGreen, $intBlue) {
if($intRed<=0||$intRed>255|| $intGreen<=0|| $intGreen>255|| $intBlue<=0|| $intBlue>255) return false;
$floatRed = $intRed/255;
$floatGreen = $intGreen/255;
$floatBlue = $intBlue/255;
return pdf_setrgbcolor_fill ($intPdfObj, $floatRed, $floatGreen, $floatBlue);
}
Have Fun!
Philipp
--
Mail: philipp.maske@location-bretagne.de
WWW: http://www.location-bretagne.de