pdf - iTextSharp acroFields.SetField method and multiple form fields with same name -



pdf - iTextSharp acroFields.SetField method and multiple form fields with same name -

in case of multiple fields same name itextsharp acrofields.setfield(name, value) sets value first field only. how set value rest of fields? when looping thru acrofields.fields field names reported as

form1[0].#subform[0].textfield1[0] - textfield form1[0].#subform[0].textfield2[0] - textfield form1[0].#subform[0].textfield2[1] - textfield form1[0].#subform[0].textfield2[2] - textfield

when using

acrofields.setfield("textfield1", value);

the value of text field named textfield1 set. there 1 field named textfield1 fine. when using

acrofields.setfield("textfield2", value);

the value of first text field named textfield2 set. rest 2 fields named textfield2 left unset.

the pdf created adobe livecycle , saved static pdf i.e. not dynamic xfa.

can utilize total field name?

acrofields.setfield("form1[0].#subform[0].textfield2[0]", value);

pdf pdf-generation itextsharp itext

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -