Question

I have made a .indd file with some form fields in it.

Now I want to get all these fields through indesign script and manipulate its content

so that i can change the content of fields and apply these changes to .indd file.

Était-ce utile?

La solution

Well I have got this and able to get all fields of the doc.

var myDoc = app.open(File("fileName.indd"));
var allformFields = myDoc.formFields;
for(var i = 0; i < allformFields.length; i++){
    var tf = allformFields[i];
    alert(tf.name);
}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top