Skip to main content
Participant
January 11, 2021
Question

Exporting combox values to a list (Plain Text or csv/xlsx) for editing

  • January 11, 2021
  • 1 reply
  • 323 views

Is there any way I can take a PDF with a combobox / dropdown list and export all the values to a simple text list?

 

Cheers

This topic has been closed for replies.

1 reply

JR Boulay
Community Expert
Community Expert
January 11, 2021

You can run this script from the JS Console or from any form field:

 

console.show();

console.clear();

for (var i=0; i<this.numFields; i++) {
var oFld = this.getField(this.getNthFieldName(i));
if (oFld != null && oFld.type == "combobox") {
for (var j=0; j < oFld.numItems; j++) {
console.println(oFld.getItemAt(j,true) + ": " + oFld.getItemAt(j,false));
}
}
}

Acrobate du PDF, InDesigner et Photoshopographe