Skip to main content
Participant
July 14, 2016
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
January 18, 2017

hello

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

Translate
try67
Community Expert
Community Expert
January 19, 2017

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

Translate
Inspiring
July 15, 2016

That last line should be:

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

Translate