PdfGraphics2D, AFAIK, doesn't support CMYK since Graphics2D doesn't support CMYK. It's an RGB-based model only.
The CMYK-extensions for SVG were introduced in the SVG Print specification which is DIFFERENT than the standard SVG spec. In addition, you are trying to use the newer (SVG 1.2) ICC-based format but w/o any provisions for actually specifying the profile to be used. However, AFAIK, the SVG parser in iText doesn't support any of these extensions. If you need CMYK (and probably spot colors at some point) you should avoid PdfGraphics2D and SVG and more to using direct PDF production using the native APIs in iText - which fully support CMYK, Spots, ICC profiles, etc. Leonard -----Original Message----- From: Slyfox1972 [mailto:[email protected]] Sent: Monday, July 19, 2010 9:34 AM To: [email protected] Subject: [iText-questions] CMYK support in PdfGraphics2D ? Hello! I am working for a print company, the actual project is a web2print system, where a customer can enter his data for print media like business cards, which will be rendered as png for preview and pdf for print. It works fine using a Graphics2D Object for rendering, using BufferedImage to get a PNG, and PdfGraphics2D to get a vectorized PDF page - if you use RGB colors. It also works embedding SVG Images - using RGB. But it is required to create the PDFs using the CMYK color model... The PdfGraphics2D class does not yet seem to support CMYK... And it's even harder to embed SVGs with CYMK colors. <rect style="fill:#e10886 icc-color(CMYK, 0, 1, 0, 0);fill-opacity:1;stroke-width:0.00100000000000000;stroke-miterlimit:4;stroke-dasharray:none" id="rect2818" width="15" height="15" x="25" y="5" transform="translate(0,857.4803)" /> Is there a way to get it all working rendering BufferedImages and Pdfs, and the support of SVG files, using the CMYK color model? Greetings Egon Schmid -- View this message in context: http://itext-general.2136553.n4.nabble.com/CMYK-support-in-PdfGraphics2D-tp2293986p2293986.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
