It's ready. It's in Acrofields and here's the javadoc:
public boolean setListOption(java.lang.String fieldName,
java.lang.String[] exportValues,
java.lang.String[] displayValues)
Sets the option list for fields of type list or combo. One of
exportValues or displayValues may be null but not both. This method will
only set the list but will not set the value or appearance. For that,
calling setField() is required.
An example:
PdfReader pdf = new PdfReader("input.pdf");
PdfStamper stp = new PdfStamper(pdf, new
FileOutputStream("output.pdf"));
AcroFields af = stp.getAcroFields();
af.setListOption("ComboBox", new String[]{"a", "b", "c"}, new
String[]{"first", "second", "third"});
af.setField("ComboBox", "b");
stp.close();
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Paulo Soares
> Sent: Friday, October 21, 2005 10:23 AM
> To: Nitin Tomer; [email protected]
> Subject: RE: [iText-questions] AcroFields - Combo-box elemnts update
>
> You'll know when it's ready.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Nitin Tomer
> > Sent: Friday, October 21, 2005 9:05 AM
> > To: [email protected]
> > Subject: [iText-questions] AcroFields - Combo-box elemnts update
> >
> > Hi,
> >
> > Is there any way combo-box elemnts can be updated in an
> > existing AcroForm using paulo-155 version. This version
> > mentions "AcroFields: lists couldn 't be set by the export
> > value " but no further information is available.
> >
> > Regards
> >
> > Nitin
> > Disclaimer :- This e-mail message including any attachment
> > may contain confidential, proprietary or legally privileged
> > information. It should not be used by who is not the original
> > intended recipient. If you have erroneously received this
> > message, you are notified that you are strictly prohibited
> > from using, coping, altering or disclosing the content of
> > this message. Please delete it immediately and notify the
> > sender. Newgen Software Technologies Ltd and / or its
> > subsidiary Companies accept no responsibility for loss or
> > damage arising from the use of the information transmitted by
> > this email including damage from virus and further
> > acknowledges that any views expressed in this message are
> > those of the individual sender and no binding nature of the
> > message shall be implied or assumed unlessthe sender does so
> > expressly with due authority of Newgen Software
> > TechnologiesLtd and / or its subsidiary Companies, as applicable.
> >
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads,
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions