Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我制作了一个 .indd 文件,其中包含一些表单字段。
现在我想通过 indesign 脚本获取所有这些字段并操作其内容
这样我就可以更改字段的内容并将这些更改应用于 .indd 文件。
好吧,我已经得到了这个并且能够获得文档的所有字段。
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); }