Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Can drop-down list data be extracted?

New Here ,
Jun 05, 2017 Jun 05, 2017

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?

TOPICS
Edit and convert PDFs
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jun 05, 2017 Jun 05, 2017

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));

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 05, 2017 Jun 05, 2017

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));

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 09, 2024 Jan 09, 2024
LATEST

Can you provide step by step

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines