Hello,
I have a 300 page file. Almost every page has one or more sound files attached. Acrobat does not provide a way to delete all sounds in the document. Instead, you are supposed to go to each page, select the sounds, then hit delete.
I found this in the AcroJS guide.
console.println("Dumping all sound objects in this document.");
var s = this.sounds;
for (var i = 0; i < this.sounds.length; i++)
console.println("Sound[" + i + "]=" + s[i].name);
This seems like this should do the trick. However, after evaluating in the Console, I get this error:
Dumping all sound objects in this document.
TypeError: this.sounds has no properties
3:Console:Exec
undefined
How might I use AJS to remove all the sound files?
Thanks.
George