1 Reply Latest reply on Jun 5, 2017 9:50 AM by try67

    Can drop-down list data be extracted?

    timmycb

      My customer created a PDF document containing a number of drop-down lists, many of which have a significant number of entries.  Is there any way for me to extract this data so that I can use it in a specification document without having to retype the contents of all the lists?

        • 1. Re: Can drop-down list data be extracted?
          try67 MVP & Adobe Community Professional

          Yes, this can be done using a simple script. The code above will export the values to the JS Console. From there you can copy them to a text file, or something like that. You just need to change the field name in the first line of code.

           

          var f = this.getField("FieldName");
          for (var i=0; i<f.numItems; i++) console.println(f.getItemAt(i));