I am testing out the Pdf.Kit classes to see if it will work with our PDFs, and I have come across an issue with PDF forms that have hidden fields. The attached form has three hidden fields (txtName, txtBuilding, txtExtension) that show up when editing in Adobe Livecycle.
When I use Pdf.Kit and get the form fields, it returns null. Here is my code:
Form form = new Form(“c:\my\file\path.pdf”);
String fieldNames = form.getFieldsNames();
At this point, fieldNames is equal to null.
Is there anything I can do so these field names are returned?
I have reproduced this problem at my end and logged it as PDFKITJAVA-33124 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.
We’re sorry for the inconvenience.