I’m using fpdf library to generate some pdf files with php. At this moment I’m lost, because i can’t set the background color.
So, I have to use the SetColor(int r, int g, int b) function and I wish to send the values of RGB as a variable.
Using SetColor($my_color) in which $my_color = "233, 155, 123" is not the right choose.
How can I send a color variable to SetFillColor function?
You could use explode on $my_color and then convert each element to an integer.