Ahen you enter the field names with a period "." as a separator in Acrobat the 
name before the separator will be the parent.

So you could call the fields of the first row row1.firstname, row1.lastname  
... second row becomes row2.firstname,
row2.lastname ...  or row[0].firstname, row[1].firstname ... (Please note that 
although that might look like an array notation
it's only part of the name).

To access the field you could either use the fully qualified name e.g. 
"row1.lastname". Or if you'd like to go by "row" you
could call getField with "row1! and the use getChildren() to get the direct 
child field.

BR
Maruan


In addition naming and position 

  
> I have created a form template using Adobe Acrobat Pro DC.  It's just rows
> of form fields arranged in a grid.
> 
> On Tue, Jan 7, 2020 at 8:55 AM Maruan Sahyoun <sahy...@fileaffairs.de>
> wrote:
> 
> > You can nest form fields. How do you generate the form template?
> > 
> > BR
> > Maruan
> > 
> > > Hi all,
> > > 
> > > Thanks in advance for your help.
> > > 
> > > Is there a way to group form fields (i.e. subclasses of PDField) into
> > rows,
> > > sort of like grouping HTML elements in a <div>?  My requirement is to
> > > prefill a PDF file with rows of form fields in Acrobat Pro DC, and then
> > use
> > > PDFBox to fill in the rows of fields with data from Java objects.  I also
> > > have to be able to reuse the same PDF file to add more rows of data until
> > > the data runs out.
> > > 
> > > I've searched the mailing list, and couldn't find it.
> > > 
> > > Thanks,
> > > Rob
> > --
> > Maruan Sahyoun
> > 
> > FileAffairs GmbH
> > Josef-Schappe-Straße 21
> > 40882 Ratingen
> > 
> > Tel: +49 (2102) 89497 88
> > Fax: +49 (2102) 89497 91
> > sahy...@fileaffairs.de
> > www.fileaffairs.de
> > 
> > Geschäftsführer: Maruan Sahyoun
> > Handelsregister: AG Düsseldorf, HRB 53837
> > UST.-ID: DE248275827
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> > For additional commands, e-mail: users-h...@pdfbox.apache.org
> > 
> > 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to