Details
Description
The Document Properties names and values are readable.
The PDF Form fields names are readable but the values of the PDF Forms fields are the initial values, not those saved using Acrobat Reader 9.
Attached file demonstrates problem using this code:
PDDocument pdDoc = PDDocument.load(filename);
PDDocumentCatalog docCatalog = pdDoc.getDocumentCatalog();
PDAcroForm acroForm = docCatalog.getAcroForm();
System.out.println("acroForm COSObject: "+acroForm.getCOSObject().toString());
List fldList = acroForm.getFields();
Iterator fIter = fldList.iterator();
while(fIter.hasNext())
It should be noted that the above code will print out the default form field values that were saved to the form using Acrobat Pro X. However if the PDF form is subsequently filled out and saved using Acrobat Reader, those values are not accessible using PDFBox.
Apparently form field values saved by Acrobat Reader are stored differently than the default form field values.