Skip to main content
Participating Frequently
January 18, 2017
Answered

Export tooltips and import them again

  • January 18, 2017
  • 3 replies
  • 3149 views

hello,

I work for a translation company, we translate forms with its tooltips

I am doing it manualy , one by one

Is there is a way to export the tooltips to an editable file and then import them again, once translated or changed?

thanks

This topic has been closed for replies.
Correct answer George_Johnson

Not directly, but you can use a script to do both. For many forms that I work with I keep track of the tooltips in a spreadsheets, which automatically generates the code to set the tooltips. For example, the code to set the tooltip text for a field named "Text1" to "Tooltip Sample 1" is:

getField("Text1").userName = "Tooltip Sample 1";

To set the tooltips, I just copy the cells from the spreadsheet that contain code like this to the interactive JavaScript console, select all of the lines, and press Ctrl + J, and the tooltips are set for all of the fields.

3 replies

try67
Community Expert
Community Expert
January 19, 2017

If anyone is interested, I've finished developing a script that allows you to do it easily and quickly:

Custom-made Adobe Scripts: Acrobat -- Import/Export Tooltips

Participating Frequently
March 3, 2022

Hi, just to confirm and make sure before I purchase, can you please let me know if special characters (such as ?!#@, etc) and double byte characters (for language like Chinese, Arabic, Thai, Japanese, etc) are properly handled?

try67
Community Expert
Community Expert
March 3, 2022

Yes, if the text file is encoded properly. Basically, if you can enter those characters manually, then the script should be able to apply them as well.

George_JohnsonCorrect answer
Inspiring
January 18, 2017

Not directly, but you can use a script to do both. For many forms that I work with I keep track of the tooltips in a spreadsheets, which automatically generates the code to set the tooltips. For example, the code to set the tooltip text for a field named "Text1" to "Tooltip Sample 1" is:

getField("Text1").userName = "Tooltip Sample 1";

To set the tooltips, I just copy the cells from the spreadsheet that contain code like this to the interactive JavaScript console, select all of the lines, and press Ctrl + J, and the tooltips are set for all of the fields.

Participating Frequently
January 18, 2017

hello

I am testing it, if I have problems I will ask you again if it is not a problem

but it seams to work ok!!!

i have to create the automatic spreadsheet now

thanks a lot

try67
Community Expert
Community Expert
January 18, 2017

Yes, it's possible to do it, but it requires developing a custom-made tool to export the tooltips (along with the field-names) to a plain-text file, and then import the translated file back into the PDF later on.

This is not a trivial task so if you're interested in hiring someone to develop such a tool for you, feel free to contact me privately at try6767 at gmail.com.