Hi,
I am sorry if I sound stupid; from where I can download the version
which contains th setList method?
Regards
Nitin
----- Original Message -----
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "Nitin Tomer" <[EMAIL PROTECTED]>;
<[email protected]>
Sent: Monday, October 24, 2005 5:05 PM
Subject: RE: [iText-questions] AcroFields - Combo-box elemnts update
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();
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 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