I'm going to add support for combo and list population in AcroFields,
this need pops up now and then and it's not that difficult. It will take
a couple of weeks time, I think. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Nitin Tomer
> Sent: Friday, October 14, 2005 7:27 AM
> To: [email protected]
> Subject: [iText-questions] PDF-form query
> 
> Hi,
>  
>         I have a PDf form, which has a combo-box - ACombo 
> with some elements in it. I am trying to add some more 
> elemnts in it using iText, the code snipplet is given below - 
>  
>             PdfReader reader = new PdfReader("combo.pdf");
>             PdfStamper stamp = new PdfStamper(reader, new 
>             FileOutputStream("combo1.pdf"));
>             AcroFields form = stamp.getAcroFields();
>             String options[] = {"Red", "Green", "Blue", "Magenta"};
>             PdfFormField field = 
> PdfFormField.createCombo(stamp.getWriter(), true, options, 0);
>             field.setWidget(new Rectangle(100, 700, 180, 720), 
>             PdfAnnotation.HIGHLIGHT_INVERT);
>             field.setFieldName("ACombo");
>             field.setValueAsString("Red");
>             stamp.addAnnotation(field,1);
>             stamp.close();
>  
> However it is not giving the desired results. The file 
> combo1.pdf is created, a combo-box shped object is shown, but 
> it's down-arror is not clickable; it just like a image, 
> nothing happens when I click on it.
> 
> Please look into this snipplet and tell me what I am doing wrong.
> 
> Regards and Thanx
> 
> 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

Reply via email to