You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Eugene Borodkin <eu...@yahoo.com> on 2012/03/14 17:32:52 UTC
Getting the Value of the Submit Button in FDF
Hi,
Does PDFBox allow you to get the value/target URL of the Submit button in the PDF Form (FDF)?
I am able to traverse all the fields in my form. But this list doesn't give me the Submit button, and its value.
PDDocument pdfBoxDoc = PDDocument.load(is);
PDDocumentCatalog pdfBoxDocCatalog = pdfBoxDoc.getDocumentCatalog();
PDAcroForm pdfBoxAcroForm = pdfBoxDocCatalog.getAcroForm();
List fields = pdfBoxAcroForm.getFields();
Iterator it = fields.listIterator();
while (it.hasNext())
{
PDField field = (PDField)it.next();
System.out.println("Field: " + field.getFullyQualifiedName() + " Value: " + field.getValue());
}
Thanks