Custom Dynamic stamp to every page automatically
Hello:
I am very new to this community but after some research I created a Dynamic Stamp that requests user input and then stamps a case number on my 100 plus page documents. Right now I have to stamp every page on the document. I would like the stamp to apply to every page automatically after the user inputs the information. This is the simple code I am using for my dynamic stamp. I placed it in the custom calculations porperties of a form text field.
if ((event.source.forReal)&&(event.source.stampName == "#ClearStamp"))
{
this.getField("Case Number").value = app.response("Enter Case Number");
}
That works great so I found this additional script from another post:
/* Multiple Page Stamp */
this.syncAnnotScan();
var annt=this.getAnnots(this.pageNum)[0];
var props=annt.getProps();
for(var i=0;i<this.numPages;i++){
props.page=i;
if(i!=this.pageNum)
this.addAnnot(props);
}
So I combined this script all together:
if ((event.source.forReal)&&(event.source.stampName == "#ClearStamp"))
{
this.getField("Case Number").value = app.response("Enter Case Number");
}
this.syncAnnotScan();
var annt=this.getAnnots(this.pageNum)[0];
var props=annt.getProps();
for(var i=0;i<this.numPages;i++){
props.page=i;
if(i!=this.pageNum)
this.addAnnot(props);
}
I have very little scripting knowledge (Close to zero) so any help I can get would be great.
Thanks!!
