Javascript to insert 3 different stamps on the same page

Community Beginner ,
Apr 13, 2022 Apr 13, 2022

Copy link to clipboard

Copied

Hello to everyone.
I have a (probably) simple question:

Let's say I have 3 "custom stamps":

  • Category A -
    stamp A.1
    stamp A.2
    stamp A.3

 

  • I would like, by running a script, to put those 3 stamps on the current page or (on the 1st page) in different places (different coordinates)
    A.1 to (0,0)
    A.2 to (10,10)
    A.3 to (20,20)

 

How would the Javascript look like?

TOPICS
How to , JavaScript

Views

41

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 ,
Apr 13, 2022 Apr 13, 2022

Copy link to clipboard

Copied

LATEST

It would consist of three calls to the addAnnot method. I suggest you read the description of that method to see how to use it. The most important parts of it are the rect and AP properties which you'll need to provide so the right stamps are created in the right locations on the page.

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