Hello everyone,

I'm using latest PDFBox 2.0.0 snaphots for filling out a form. Processing was working fine both for AcroForm fields and for XFA, but latest changes (probably sometimes between Jan 22 - Jan 25) caused that fields in a form are not discovered.

The file I'm using is available here: http://www.msmt.cz/file/34489_1_1/

When I run PrintFields from examples - http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/fdf/PrintFields.java?view=markup - on the file, the output I get is:
1 top-level fields were found on the form
|--topmostSubform[0]

But when I use older version of 2.0.0 branch, all fields are printed:
1 top-level fields were found on the form
|--topmostSubform[0]
|  |--topmostSubform[0].Page1[0]
| | |--topmostSubform[0].Page1[0]._01_Subtitul[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDComboBox | | |--topmostSubform[0].Page1[0]._02_Registrovany_Nazev[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._03_Ulice[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._04_Mesto[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField | | |--topmostSubform[0].Page1[0]._05_PSC[0], type=org.apache.pdfbox.pdmodel.interactive.form.PDTextField
...

The problem seems to be at the line:
List<COSObjectable> kids = field.getKids();
The list is empty for the top-level field. Anyone has a clue what could be wrong?

Best regards,
Martin Jelinek

--
[email protected]
http://www.barinka.net/


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to