pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Borodkin <eugeneb...@yahoo.com>
Subject Getting the Value of the Submit Button in FDF
Date Wed, 14 Mar 2012 16:32:52 GMT
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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message