Manuals

 

SetaPDF_TextStamp::setFontColor()

Description

class SetaPDF_TextStamp extends SetaPDF_Stamp {
void setFontColor ( integer $g | $r | $c[, integer $g | $m[, integer $b | $y[, integer $k]]] ) }

Defines the color used for text. It can be expressed in RGB components, CMYK or gray scale.

Parameters

$g | $r | $c

If $g and $b are given (3 parameter passed), red component; if $m, $y and $k are given (4 parameter passed) it's the cyan component; if only one parameter is passed it indicates the gray level.

Values for rgb and gray are between 0 and 255.

For CMYK the values are between 0 and 100.

$g | $m

Green component (between 0 and 255) if 3 parameters were passed.

Or magenta component (between 0 and 100) if 4 parameters were passed.

$b | $y

Blue component (between 0 and 255) if 3 parameters were passed.

Or yellow component (between 0 and 100) if 4 parameters were passed.

$k

Key/black component (between 0 and 100) if 4 parameters were passed.