Hi, What you could do to output CMYK to pdf is to change the org.apache.fop.renderer.pdf.PDFRenderer. You could implement your own PDFRenderer as a copy and map some rgb-values to cmyk-values (via look-up-table or sth.)
But the problem is here, that you must change quite a bit since there are no setColor... methods or something. This could be a hack that is not that complicated as the PDF-patch hack where you must recode the XRef-table. Just my 2ct. Christian > -----Original Message----- > From: Timo Haberkern [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2003 9:44 AM > To: [EMAIL PROTECTED] > Subject: CMYK again > > > Hi all, > > i read the last threads about cmyk for FOP, but it seems that > there was > no solution for the problems. > > If i read all the messages completely there is the following status: > > 1.) FOP (or XSL:FO) doesn't support CMYK directly > > 2.) CMYK JPEGs shouldn't be a problem in FOP through JAI support > > 3.) Ben Galbraith suggested a solution replacing the RGB > commands rg/RG > with CMYK k/K for every PDF object and mentioned a > self-written tool for > doing that task. > > 4.) Someone mentioned to do this replacement in the output method in > PDFDocument.java, but it seems nobody has tried it so far. > > > My problem is that i will need CMYK support in the near > future and i'm > not the "big" coder, so i think i have no chance to do > "hacking" FOP to > my needs. But i think there are more people like me who want > to create > CMYK documents with FOP. Maybe it is possible to create a > wiki for this > topic, so we get a complete way how to solve this problem? > > Ben: How about release your mentioned tool as open source? > > Any ideas about that? > > > A question to the FOP coding gurus: What would be the > "correct"/best way > to implement an extension to FOP that can generate a CMYK document? > > rgds > Timo > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
