% Control script for PStill to draw only pure white fill areas as 100% black during processing % Will extract the white color from the source and paint as black layer define interceptEOFill() { variable colorspace; variable cyan, yellow, magenta, black; colorspace = currentColorspace(); (cyan,magenta,yellow,black) = currentCMYKColor(); if (colorspace < 4) { % we check DEVICEGRAY,RGB and CMYK Colorspaces if ((black + cyan + magenta + yellow) > 0.00001) { % only for non white suppressOutput(); } else { setRGBColor(0.0,0.0,0.0); % paint white as black } } } define interceptFill() { variable colorspace; variable cyan, yellow, magenta, black; colorspace = currentColorspace(); (cyan,magenta,yellow,black) = currentCMYKColor(); if (colorspace < 4) { % we check DEVICEGRAY,RGB and CMYK Colorspaces if ((black + cyan + magenta + yellow) > 0.00001) { % only for nonwhite suppressOutput(); } else { setRGBColor(0.0,0.0,0.0); % paint white as black } } } define interceptStroke() { variable colorspace; variable cyan, yellow, magenta, black; colorspace = currentColorspace(); (cyan,magenta,yellow,black) = currentCMYKColor(); if (colorspace < 4) { % we check DEVICEGRAY,RGB and CMYK Colorspaces if ((black + cyan + magenta + yellow) > 0.00001) { % only for nonwhite suppressOutput(); } else { setRGBColor(0.0,0.0,0.0); % paint white as black } } } % don't draw images at all define suppressImages() { return 1; }