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

Placing stamps with JavaScript

New Here ,
Aug 13, 2020 Aug 13, 2020

Hi again,

In JavaScript I want to select a stamp and add it to the PDF (works fine so far):

 

this.addAnnot({
    type: "Stamp",
    page: 0,
    rect: [36, 72, 288, 144],
    AP:   "#DApproved"
});

 

The stamp is now placed to the exact position and size defined in the code.

Now I want to allow the user to place the stamp where ever he wants. (like when you select a stamp from the stamp toolbar)

How should I proceede?

TOPICS
Acrobat SDK and JavaScript
808
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 , Aug 14, 2020 Aug 14, 2020

A) Yes, using the code you already have.

B, C) No.

Translate
Community Expert ,
Aug 13, 2020 Aug 13, 2020

That's not possible with a script. They can move the stamp after it is added, though.

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
New Here ,
Aug 13, 2020 Aug 13, 2020

okay - back to the original problem:

I try to create a tool that contains all the actions we need in our company.

A) Is there a way to add a button to the tool to apply a specific stamp?

B) Or to add the Stamp drop down ...

C) or the Stamps Palette button to the tool?

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 ,
Aug 14, 2020 Aug 14, 2020
LATEST

A) Yes, using the code you already have.

B, C) No.

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