Q: I am trying to duplicating a page which already exists in a form
using doc.PagePushBack and then filling in dyntamically some field
values on the newly created page. The copy part seems to work ok
except the naming structure is also duplicated. How do I access the
newly created field when the name is exactly the same?
F[0].P[0].name <- is item on first page
F[0].P[1].name <- is field on 2nd page
when creating a dupicate of page #2 I get another F[0].P[1].name field
created??? Shouldn't this be F[0].P[2].name?
----
A:
When copying PDF page the form field names are not changed. You could
rename the field names using Field.Rename() method. This is illustrated
in the third code snippet in InteractiveForms sample project
(http://www.pdftron.com/net/samplecode.html#InteractiveForms see 'Form
templating').