Answered
We put three buttons at the bottom of a book chapter, which are duplicated across all the pages from the first page. When we do an e-version of the chapter, we then want to delete all the buttons, but leave other links (cross-references) that are in the chapter intact. There is a remove all links feature in Acrobat X, but we don't want to remove ALL links, we just want to remove all BUTTONS.
Is there a way to do this without manually having to select them on hundreds of pages? Basically, we need a way to select all buttons for deleting in one shot.
for (var i=this.numFields-1; i>=0; i--) {
fname = this.getNthFieldName(i);
f = this.getField(fname);
if (f.type=="button") {
this.removeField(fname);
}
}
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com