Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Script to Insert a Custom Stamp/Annotation

$
0
0

Hello,

 

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 JavaScriptfor 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.

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>