*/
public void process(PDFOperator operator, List arguments) throws IOException
{
// (PDF 1.1) Set color space for stroking operations
COSName name = (COSName)arguments.get( 0 );
PDColorSpace cs = null;
Map colorSpaces = context.getColorSpaces();
if( colorSpaces != null )
{
cs = (PDColorSpace)colorSpaces.get( name.getName() );
}
if( cs == null )
{
cs = PDColorSpaceFactory.createColorSpace( name );
}
PDColorSpaceInstance colorInstance = context.getGraphicsState().getNonStrokingColorSpace();
colorInstance.setColorSpace( cs );
int numComponents = cs.getNumberOfComponents();
float[] values = EMPTY_FLOAT_ARRAY;
if( numComponents >= 0 )
{
values = new float[numComponents];
for( int i=0; i<numComponents; i++ )