I have a script to add an icon to a custom tool button.
When the script is run from the console in Adobe Professional 9, the tool button with the icon is added to the toolbar.
The tool button needs to be installed on user's computers with Adobe Reader X.
When Adobe Reader X was opened the following error was thrown:
TypeError: this.importIcon is not a function
Can any one please provide assistance on how to get the tool button with the icon to show in Adobe Reader X?
this.importIcon("myIcon", "/C/temp/myIcon.jpg", 0);
var oIcon = util.iconStreamFromIcon(this.getIcon("myIcon"));
cExec: "console.println('My Button!');",
Thank you very much.
You should instead include the button icon image data in the script. If you want to see how to do it, you can get the following product: http://www.windjack.com/product/acrobuttons/