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.
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.
Please look into this snipplet and tell me what I am doing wrong. Regards and Thanx Nitin |
- [iText-questions] PDF-form query Nitin Tomer
- RE: [iText-questions] PDF-form query Paulo Soares