3 Replies Latest reply on Jan 21, 2009 10:12 PM by George_Johnson

    buttonImportIcon errors out

      I'm adding a button created by a custom menu item. When adding the icon, I get an "internal error"... the button gets added but the icon isn't attached. Any suggestions for what might cause this problem?

      var i = this.addField("b"+imgCount, "button", page, tRect);
      i.buttonPosition = position.iconOnly;
      var retn = i.buttonImportIcon("/C/PDF/img1.pdf",0);
      if (retn != 0) app.alert("Icon not imported");

      (Acrobat Pro 9)

      Thanks,
      Jason