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

Reduce the stamp size created using javascript

New Here ,
Nov 03, 2018 Nov 03, 2018

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
699
Translate
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.

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

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

Translate
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
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

Translate
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