I created a pdf using Adobe acrobat DC and able to read values using below code.
PdfReader pdfReader = new PdfReader(filePath);
AcroFields acroFields = pdfReader.getAcroFields();
Map<String, AcroFields.Item> fields = acroFields.getFields();
Map<String, String> fieldsMap = new HashMap<>();
for (Entry<String, Item> entry : fields.entrySet()) {
fieldsMap.put(entry.getKey(), acroFields.getField(entry.getKey()));
}
But when i created a pdf using Adobe Live Cycle Manager the above code is not working when i try to read the form fields.
Please let me know how to read the form fields if we create a form using Adobe LiveCycle Manager.