Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2582

Form fields missing entirely or incorrect in PDField list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.8.8, 2.0.0
    • 1.8.9, 2.0.0
    • AcroForm
    • Windows 7, JRE 1.8.0_25

    Description

      Running this code on the attached file results in incorrect and missing results:

      PDDocument doc = PDDocument.load( new File(filePath) );
      PDAcroForm form = doc.getDocumentCatalog().getAcroForm();
      List<PDField> fields = form.getFields();
      for ( int i=0; i<fields.size(); i++ ) {
      System.out.println("Name:" + fields.get.getFullyQualifiedName());
      }

      The output is:
      Name:2
      Name:Step 2
      Name:Image 2
      Name:Button 2
      Name:Button 5
      Name:Image 5

      The file was generated in InDesign and the form fields created there, so they should be recognizable. You can see that the part of the form fields after the dot was removed and the two fields on page 4 are missing entirely.

      I tested it using 1.8.8 and a very recent 2.0.0 snapshot, both yielded the same results.

      Attachments

        1. Rollover Mock 5.pdf
          378 kB
          Gilad Denneboom

        Activity

          People

            msahyoun Maruan Sahyoun
            giladd Gilad Denneboom
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: