have use below code in custom calculation script
var cAsk = "Enter stamp you want to give";
var cTitle = "Document state for stamp";
if( event.source.forReal &&
(event.source.stampName == "#stamp1"))
event.value = app.response(cAsk,cTitle);
You can't do it with a script, as the stamp doesn't yet exist at that point.
Copy link to clipboard
First, if it's a fixed size you want, just make the stamp smaller. You can do this by creating a new graphic and then doing a page replacement on the stamp file.
If you want to control the stamp size dynamically, then you'll need to place the stamp with a script.