Dear Leonard,

thanks for the hint. However - can you tell me where to set the colorspace in 
Acrobat. we searched the whole thing - and were not 
successfull. My designer-lady didn't know it either. 

Thanks a lot,

Mark

Quoting "Leonard Rosenthol" <[email protected]>:
> What colorspace did you set in Acrobat for the fields?  The default in
>Acrobat is RGB - you have to go out of your way to set grayscale or CMYK.
> 
> You can also change the space via iText if necessary.
> 
> Leonard
> 
> -----Original Message-----
> From: Mark Schmidt [mailto:[email protected]]
> Sent: Thursday, August 26, 2010 12:07 PM
> To: [email protected]
> Subject: [iText-questions] Problem with iText, PDFSTamper and CMYK/RGB
> 
> Hi All,
> 
> I have a huge Problem with PDFSTamper and a conversion to RGB.
> 
> I have a PDF File with some fields in it, made in InDesign and Acrobat Pro 9
>for the fields. Text color ist set to white or black.
> 
> Now I fill these fields:
> 
> PdfStamper stamp1 = new PdfStamper(reader, output);
> 
> 
> AcroFields form1 = stamp1.getAcroFields();
> 
> stamp1.setFormFlattening(true);
> 
> Set<String> keys = values.keySet();
> Iterator<String> i = keys.iterator();
> String key;
> while (i.hasNext()) {
> 
> key = i.next();
> 
> form1.setField(key, values.get(key));
> 
> }
> 
> stamp1.close();
> 
> 
> So far so good. The only Problem ist, that when I flatten the fields, they
>are converted to RGB somehow. This is a problem for printing,
> cause all the other text on the page is CMYK.
> 
> Does anyone have any idea why this is happening? How I I setup CMYK for
>these fields? I tried using:
> 
> stamp1.getWriter().setDefaultColorspace(PdfName.DEFAULTCMYK, null);
> 
> with no effect.
> 
> Thanks a lot in advance for your help!
> 
> Best regards
> 
> Mark Schmidt
> 
> 
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> 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/
> 
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> 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/


------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
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/

Reply via email to