Positioning PDF Stamps Programmatically Part I
Some extra thought is required if the stamp will be sized differently than the original or if the page has a rotation other than zero.
A PDF stamp that exists in the stamps folder can be placed with a script using the document addAnnot( ) method. If the stamp is dynamic, the dynamic features including any popup dialog windows, will execute when the stamp is placed. The method’s input parameter is an object literal with several potential stamp properties, but the following properties are mandatory:
type - The annotation type is Stamp.
AP - The name of the stamp. The following video shows how to obtain the stamp’s AP:
page - The zero-based page number on which the stamp will be placed.
rect - The stamp’s location (rectangle) on the page.