PHP : Function Reference : ClibPDF Functions [deprecated] : cpdf_setrgbcolor_stroke
xerofun
You have to set the color as a floating point value. So for white you can't use the values 255, 255, 255 (for red, green and blue) as you would do in a normal graphics program, you would have to enter 1.0, 1.0, 1.0 .
So black would be 0.0, 0.0, 0.0.
Effectively all other colors are in between 0.0 and 1.0.
|