How to get field names from XFA form?

Hi,

I am using the following code to find the field names from a XFA pdf form that is at pdf version 1.7:

Form form = new Form(pdfFile, pdfFile + “new.pdf”);
String[] fieldNames = form.getFieldsNames();


But, the resulting fieldNames array is null, even though there are many fields on the pdf form (attached). How do I find the field names on this form?

Thanks,
Daniel

Hi Daniel,


Thanks
for using our products and sorry for the delayed response.

I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as
PDFKITJAVA-33266. We
will investigate this issue in details and will keep you updated on the status
of a correction.

We
apologize for your inconvenience.