Skip navigation
Currently Being Moderated

Script to Insert a Custom Stamp/Annotation

May 31, 2009 7:44 PM



I have created a new custom stamp and need to add a script to "Batch Processing" to insert this stamp on 1,000 drawings.


The sample script available from the JavaScript for Acrobat API Reference inserts a stamp from the "Standard" Stamp File.


The standard stamp file is located in the following directory:


C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Annotations\Stamps\ENU\Standard.pdf


The script needs to be modified to insert a stamp from a custom stamp menu called "Doc Control" and the custom stamp name is "Received".


The actual file which contains the custom stamp is located in the following directory:


C:\Documents and Settings\username\Application Data\Adobe\Acrobat\8.0\Stamps\Doc Control.pdf



Please find below the script which needs revising to include the new custom stamp.



var annot = this.addAnnot({

page: 0,

type: "Stamp",

name: "myStamp",  rect: [400, 400, 550, 500],

contents: "Received Stamp!",

AP: "NotApproved" }); This part of the script needs revising to refer to the new custom stamp not the stamp in the standard stamp file?


Any assistance will be greatly appreciated - Thank you.









More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points