PDF provides a powerfull facilities for specifying the colors of graphics objects.

This class encapsulates color behaviour.

Some colors interact with PDF document (create additional objects in a PDF), others don't do it. That is defined in a subclasses.

package Zend_Pdf
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Get color components (color space dependent)

getComponents() : array

Returns

array

Instructions, which can be directly inserted into content stream to switch color.

instructions(boolean $stroking) : string

Color set instructions differ for stroking and nonstroking operations.

Parameters

$stroking

boolean

Returns

string