private static final Log LOG = LogFactory.getLog(SetNonStrokingColorSpace.class);
@Override
public void process(Operator operator, List<COSBase> arguments) throws IOException
{
COSName name = (COSName)arguments.get(0);
try
{
PDColorSpace cs = context.getResources().getColorSpace(name);
context.getGraphicsState().setNonStrokingColorSpace(cs);
context.getGraphicsState().setNonStrokingColor(cs.getInitialColor());
}
catch (PDColorSpace.MissingException e)
{
LOG.error("Missing color space: " + name.getName());
}
}