Re: [iText-questions] AcroFields setField for duplicate field names with the same value

2012-05-08 Thread DeeJay
I have managed a work around to the problem. Instead of using the setField method to change the field values, I am now extracting the XFA data and changing the necessary tag values in the xml. I then take the XFA form src and replace the XFA stream with the updated xml. Regards, Dee DeeJay wro

Re: [iText-questions] AcroFields setField for duplicate field names with the same value

2012-05-07 Thread DeeJay
I have tried using the index as indicated, however it only changes the Description field when the index is 0. The other indexes seem to have no effect. Also I get back an empty Map and Set when I call the respective methods: Map fieldMap = form.getFields(); Set fields = form.getFie

Re: [iText-questions] AcroFields setField for duplicate field names with the same value

2012-05-07 Thread Paulo Soares
acroFields.setField("Description[k]","MyDescription") should work. k is the index to the repetition. Paulo On Mon, May 7, 2012 at 3:11 PM, DeeJay wrote: > Hi, > > Just a little more information regarding the mentioned question. > > The xfa data from the pdf contains could contain the xml: > > ht

Re: [iText-questions] AcroFields setField for duplicate field names with the same value

2012-05-07 Thread DeeJay
Hi, Just a little more information regarding the mentioned question. The xfa data from the pdf contains could contain the xml: http://www.xfa.org/schema/xfa-data/1.0/";> MyDescription1 6000 MyDescription2 7000 MyDescription3 8000 As can be seen, the Description element appears seve

[iText-questions] AcroFields setField for duplicate field names with the same value

2012-05-07 Thread DeeJay
Hi, I am working on an XFA pdf that has form fields with the same name. However, AcroFields.setField(Name, Value) only sets the value of the first field. Is there a way that I can set the same value to all the form fields with that name? Thank you. Kind Regards, Dee -- View this message in con