5 Replies Latest reply: Nov 5, 2010 1:28 PM by Thomas.Malatesta RSS

    Script to Insert a Custom Stamp/Annotation

    Jo_2005 Community Member



      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.