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

85

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

Adobe Community Professional , Aug 14, 2020 Aug 14, 2020
A) Yes, using the code you already have. B, C) No.

Likes

Translate

Translate
Adobe Community Professional ,
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.

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

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

Copy link to clipboard

Copied

LATEST

A) Yes, using the code you already have.

B, C) No.

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