Hi Bharathi,
Thanks for contacting support.
Please try using following code snippet to get form field names and their respective values.
[Java]
//Open document<o:p></o:p>
Document pdf = new Document("c:/pdftest/RadioButtons.pdf");
Field[] fields =
pdf.getForm().getFields();
for (int i = 0; i <
fields.length; i++) {
System.out.println("Form field:
" +
fields[i].getFullName());
System.out.println("Form field:
" +
fields[i].getValue());
}
However I have also managed to notice the problem related to invalid/improper field names when using above stated code snippet. It appears that internal methods are being exposed but since the API is obfuscated, so they have unconventional names. For
the sake of correction, I have logged it in our issue tracking system as PDFNEWJAVA-35052. We
will investigate this issue in details and will keep you updated on the status
of a correction.
We
apologize for your inconvenience.