Skip to main content
Participant
January 6, 2020
Answered

Custom Dynamic Stamp works only on my computer

  • January 6, 2020
  • 1 reply
  • 1526 views

The company I work for recently purchased Adobe Acrobat DC so we can try and go more paperless. I was asked to create a couple custom dynamic stamps. After some trial and error and searching the web for examples I made them. The only problem now is that they only work on my computer.

 

I put a copy of the stamps on the other computers in

 C:\Users\[user name]\AppData\Roaming\Adobe\Acrobat\DC\Stamps.

 

The java script that asks for a person's response is not working correctly.

 <event.value = ("Voucher").value  =  app.response("Voucher:");>

 

As soon as the person hovers the mouse cursor over Dynamic, under stamps, a box pops up asking for a response. You are not allowed to choose a stamp listed under Dynamic.

I even deleted the stamps off the computers and recreated them from scratch on a couple computers but will still not work.

 

This is my first time working with java script.

This topic has been closed for replies.
Correct answer Thom Parker

There are a few details for creating dynamic stamps that use a popup to get user data. First, the code has to be qualified because the script is run every time the menu options for any stamp are un-covered. There are some special event properties for this.

 

Also, you're code has some nonsensical bits. What is ("Voucher").value supposed to do? 

Just this will work fine:

event.value  =  app.response("Voucher:")

 

You can read all about how to do this correctly at these sites:

https://acrobatusers.com/tutorials/dynamic_stamp_secrets/

https://www.pdfscripting.com/public/All_About_PDF_Stamps.cfm

 

 

1 reply

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
January 6, 2020

There are a few details for creating dynamic stamps that use a popup to get user data. First, the code has to be qualified because the script is run every time the menu options for any stamp are un-covered. There are some special event properties for this.

 

Also, you're code has some nonsensical bits. What is ("Voucher").value supposed to do? 

Just this will work fine:

event.value  =  app.response("Voucher:")

 

You can read all about how to do this correctly at these sites:

https://acrobatusers.com/tutorials/dynamic_stamp_secrets/

https://www.pdfscripting.com/public/All_About_PDF_Stamps.cfm

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
DShinallAuthor
Participant
January 7, 2020

Thank you for the quick reply. "Voucher" would be a number inputted by the person.

 

I have watched your video on “How To Make A Dynamic PDF Stamp”. That is where I took your script< this.getField(“Amount”).value = app.response(“Amount:”);> and modified it to < event.value = ("Voucher").value = app.response("Voucher:");>

 

The problem I am running into is that the script will only work on my PC. I have created the Stamp on another person’s computer, copying and pasting the scrip, and it won’t work.

Thom Parker
Community Expert
Community Expert
January 7, 2020

There are a number of parts to creating a working dynamic stamp, and without more info I can't really say what the issue might be. However, tutorials and sample covering the details of this process are available here:

https://www.pdfscripting.com/public/All_About_PDF_Stamps.cfm

 

If you join the site and PM me I'd be happy to help you resolve this issue. 

 

 

 

 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often