Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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));
Copy link to clipboard
Copied
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));
Copy link to clipboard
Copied
Can you provide step by step