Associate
- Joined
- 7 Nov 2005
- Posts
- 499
Hi All,
I am trying to stamp a document using the same custom stamp but automatically repeat for all pages. It seems the script below from this website would work but I cannot seem to get it to work. Hopefully some very smart person can help where I am going wrong.
https://community.adobe.com/t5/Acrobat/Apply-Stamp-Tool-to-All-Pages-in-a-PDF/td-p/3969086
I am pasting all the below in Console window but just keep getting SyntaxError: syntax error
Any help much appreciated it will save me hours per month
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 am trying to stamp a document using the same custom stamp but automatically repeat for all pages. It seems the script below from this website would work but I cannot seem to get it to work. Hopefully some very smart person can help where I am going wrong.
https://community.adobe.com/t5/Acrobat/Apply-Stamp-Tool-to-All-Pages-in-a-PDF/td-p/3969086
I am pasting all the below in Console window but just keep getting SyntaxError: syntax error
Any help much appreciated it will save me hours per month
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);
}