Thanks for the quick answer. I ended up flattening and modyfing com.lowagie.text.pdf.AcroFields with a filter function on every new XXXColor(...) in the getAppearance method. Worked like a charm :-)
- Tore -----Original Message----- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: 10. november 2003 19:24 To: 'Tore Bastiansen'; [EMAIL PROTECTED] Subject: RE: [iText-questions] PfdStamper, AcroForms and Spot Colors That can be done easily but requires the manipulation of the dictionaries and a good knowledge of the PDF format. You can only have RGB color in form fields, however it would be possible to flatten a field using a spot color with some work. Best Regards, Paulo Soares > -----Original Message----- > From: Tore Bastiansen [SMTP:[EMAIL PROTECTED] > Sent: Monday, November 10, 2003 13:50 > To: [EMAIL PROTECTED] > Subject: [iText-questions] PfdStamper, AcroForms and Spot Colors > > Hi, > > I just started using itext today, so please forgive any apparent > newbieness. (Great tool BTW :-) > > Problem: > I am using PdfStamper to fill inn values from an FDF. Now I want to to > implement a filter to change the text colors of all the text strings to > a predefined spot color. > > Can itext do this out of the box, or should I try to modify > AcroFields.java to implement some sort of filter interface. I can think > of several uses; replace font/color, remove border (someone asked about > that earlier) etc. > > Any ideas? > > -- > Tore Bastiansen > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions -----Original Message----- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Sent: 10. november 2003 18:06 To: Tore Bastiansen; [EMAIL PROTECTED] Subject: Re: [iText-questions] PfdStamper, AcroForms and Spot Colors At 2:50 PM +0100 11/10/03, Tore Bastiansen wrote: >Problem: >I am using PdfStamper to fill inn values from an FDF. Now I want to to >implement a filter to change the text colors of all the text strings to >a predefined spot color. Are you doing simple filling or also flattening? I ask because PDF forms don't support spot colors - you would need to flatten, in which case you could use spots, but yes, you'd need to modify the flattener. Leonard -- ------------------------------------------------------------------------ --- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-629-3700 (voice) 215-629-0789 (fax) ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
