Skip to main content
Participant
Jul 14, 2016 9:02 PM UTC
Question

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]

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Participating Frequently
Jan 18, 2017 7:41 PM UTC

hello

is there a way to import this tooltips again in the pdf after translated?

Translate
try67
Community Expert
Community Expert
Jan 19, 2017 2:17 PM UTC

It can now be done using this tool I've just developed: Custom-made Adobe Scripts: Acrobat -- Import/Export Tooltips

Translate
Inspiring
Jul 15, 2016 4:45 AM UTC

That last line should be:

this.createDataObject(this.documentFileName.replace(/\.pdf/,"_Tooltips.txt"),cSummary);

Translate