Skip to main content
Participant
July 14, 2016
Question

Export tooltips to a file

  • July 14, 2016
  • 2 replies
  • 673 views

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 has been closed for replies.

2 replies

Participating Frequently
January 18, 2017

hello

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

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

Inspiring
July 15, 2016

That last line should be:

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