...the use of a slightly modified processing pgraphicspdf class which
permits, among a few other things, to set colors in cmyk space. The
actual Processing PDF library permits to create PDF documents with the
familiar Processing graphics API. The library includes the iText Open
Source Library for Java
http://www.creativeapplications.net/processing/printshop-with-processing-preparing-algorithmic-content-for-offset-print/
Andreas Gysin