Thanks for your reply.

Let me explain my application. I have two textfields and two floating fields
in a dynamic xfa form pdf.
I would like to fill all the fields using the below code.I am able to fill
normal text fields and but I am not able to fill floating fields.
I was wondering how can I fill the floating fields using the following itext
code.

Actually, this is my code below,

            PdfReader reader = new PdfReader(RESOURCE1);
            
                   PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream(RESULT1));
            AcroFields form = stamper.getAcroFields();
            Map<String,Item> fields = form.getFields();
            for (String field : fields.keySet()) {
                    System.out.println(field);
                    form.setField(field, "value");
           }
            
            stamper.setFormFlattening(true);
            stamper.close();
            
          }


--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/floating-fields-in-pdf-tp4408905p4430194.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to