Export tooltips to a file
I'm trying to use Thom Parker's Javascript suggestion to export tooltips to a file and append the list to a PDF.
Here's the script from:
https://answers.acrobatusers.com/How-to-export-tooltips-to-a-text-file-or-other-document-q86962.aspx
var cSummary
for(i=0;i<this.numFields;i++)
{
var cName = this.getNthFieldName(i);
var cToolTip = this.getField(cName).userName;
cSummary += cName + " : " + cToolTip + "\n";
}
this.createDataObject(this.documentFileName.replace(/\.pdf/,"_Tooltips.txt",cSummary);
If I run this in the Javascript console of Acrobat XI on a Mac I get:
SyntaxError: missing ) after argument list
1:Console:Exec
undefined
Can someone help me to debug this?
Thanks!
[Moved from the general, non-support Forum Lounge to a product-specific support forum - Mod]
