Skip to main content
tdjohnson7700
Known Participant
August 28, 2018
Question

Adobe stamp Add-On Tool not working in Adobe Pro XI

  • August 28, 2018
  • 2 replies
  • 2768 views

Good morning

I currently have Adobe Pro XI version Adobe 11.0.23 on a Windows 10 Computer

I have created several stamps in the past to place a signature at an indicated place on a document.  I first have the person sign a piece a paper, scan the document into adobe, save it as a .jpg image, then go into paint.net, make background transparent and save as a .gif image.  Then I go back into Adobe, click on the stamp tool, click on custom stamp, create custom stamp, browse for the image, etc.

Then I go find the stamp in adobe in the C drive stamp folder--and using the template feature change the name to a more manageable name with #NameOfStamp

After that, I make a java script file with the following script.

function NameOfFunction(oDoc)


{

var cStampName = "#NameOfStamp";
var oStamp = this.addAnnot ({page:this.pageNum, type:"Stamp",
   AP: cStampName,
  rect:[97.92,170.64,247.68,192.96]});


}
app.addToolButton({cName: "NameOfStamp",
                   cExec: "NameOfStamp(event.target)",
                   cLabel:"NameOfStamp",
 
  cTooltext:"NameOfStamp"});

I then close adobe, open back up--and the stamp is normally loaded under add on tools.

I have tried several times yesterday and today to make a new stamp--and it shows up in stamps--but it will not show up in the add on tools.

We have not yet purchased Adobe DC Pro--as I have a full version of Adobe XI Pro.  I am wondering if this problem is due to Adobe Pro XI not being updated any more?

My other stamps work--but this new one will not show up.  Any suggestions would be GREATLY appreciated!

I currently have version Adobe 11.0.23

Thank you so much in advance for your help!

This topic has been closed for replies.

2 replies

tdjohnson7700
Known Participant
September 5, 2018

I think what happened is that it is not visible on MY computer.  I installed the stamps and the java script on another computer and they are visible--however when I try to utilize the stamps from the add-on tools on MY computer--they do not show up.

I was doing the process correctly--as I thought that I was-

I have just recently received a new computer with Windows 10--but still have Adobe XI Pro. 

All my other add-on tools are visible--just not the new ones that I create since I have received my new computer.

Thom Parker
Community Expert
Community Expert
September 5, 2018

Ok, so your issue is that the "ToolButton" created by the script is not displayed in the "Add-On" tools panel?  

If this is the case then there are two main possibilities.

1. There is an error in the code that is throwing an exception.

2. The script is in the wrong location.

On #1, Have you looked in the console window to see if there are any reported exceptions? Also, the function named in the "addToolButton" arguments does not match the defined function name.

On #2. Post the JavaScript folder path you are using. Have you used the "app.getPath()" function to verify the stamp folder location?

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
tdjohnson7700
Known Participant
September 6, 2018

Thom

Thank you so much for your response.

In answer to your question #1--I did run the code in the java script window and the stamp is placed correctly on the page. I did add the # in front of the appToolButton--it still runs the code correctly, but the tool is not displayed along with my other tools.

On #2--I do not have access to the Program Files folder due to restrictions in place by our IT Department, so my javascripts are located in the following folder.

C:\Users\tjohnson\AppData\Roaming\Adobe\Acrobat\Privileged\11.0\JavaScripts

I have created several of these signature tools for our department heads--and all of the ones that I previously created show up in my add-on tools.  I even installed the tool in question on other computers and it works perfectly.  it will not display on my computer. 

The only thing that has changed since then is that I now have a Windows 10 computer. My previous computer was Windows 8. I really think it has something to do with the compatibility of Windows 10 with Adobe Pro XI.  Since Adobe Pro XI is no longer supported--that may be the issue as well.  I would prefer not having to purchase Adobe DC Pro at this time. 

Thank you for your assistance.

try67
Community Expert
Community Expert
August 28, 2018

Did you duplicate the code for this new stamp? It won't just appear by itself...

If you did, make sure you give a unique value to the cName parameter, and check the JS Console for error messages.

tdjohnson7700
Known Participant
August 29, 2018

  

I edited the javascript code of a current stamp and changed the names to comply with the new stamp.  The code is saved in the JavaScript folder.  I ran the code in the JS Console, and it put the stamp in the appropriate place.

try67
Community Expert
Community Expert
August 29, 2018

So it's working well?