Skip to main content
Participant
November 4, 2018
Answered

Reduce the stamp size created using javascript

  • November 4, 2018
  • 2 replies
  • 843 views

have javaScript to create stamp its working fine, but stamp size is little big, i need to reduce size of stamp, please help me

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);
}

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

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.

2 replies

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
November 6, 2018

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.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
November 4, 2018

You can't do it with a script, as the stamp doesn't yet exist at that point.