• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Reduce the stamp size created using javascript

New Here ,
Nov 03, 2018 Nov 03, 2018

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript , Windows

Views

221

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 06, 2018 Nov 06, 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.

Likes

Translate

Translate
Community Expert ,
Nov 04, 2018 Nov 04, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 06, 2018 Nov 06, 2018

Copy link to clipboard

Copied

LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines