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

Placing stamps with JavaScript

New Here ,
Aug 13, 2020 Aug 13, 2020

Copy link to clipboard

Copied

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

Views

537

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

A) Yes, using the code you already have.

B, C) No.

Votes

Translate

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

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

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?

Votes

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

Copy link to clipboard

Copied

LATEST

A) Yes, using the code you already have.

B, C) No.

Votes

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