Skip to main content
Participant
March 9, 2012
Answered

Apply Stamp Tool to All Pages in a PDF?

  • March 9, 2012
  • 5 replies
  • 105187 views

Is there a way to have Acrobat Pro X apply a stamp to all pages in a document? For example, if I am sent a set of plans that I want to mark "Not Approved", is there a way to click the Not Approved Stamp on page one and have it apply to all pages in the document?

Thanks!

Correct answer Iliya

This is not valid code:


call to this.syncAnnotScan()


Use this instead:


this.syncAnnotScan();


Hi Again,

Thanks for replying so fast. I now tried the below code as you suggested but it still gave a syntax error. I am copying/pasting all information from the console:

// Assume that the stamp is the only

// annot on the page

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);

}

SyntaxError: syntax error

1:Console:Exec

undefined

5 replies

Participant
February 26, 2020

First select stamp from list and stamp on single page then again clink on that stamp(where you stamp on document) then go to add on tools and select BATCH STAMP. Here you can set page range/multiple pages at one.

Thom Parker
Community Expert
Community Expert
February 28, 2020

Ha ha, first you have to have the "Batch Stamp" script installed.  This does not come with Acrobat. It's an "Add-on"

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
February 10, 2021

The JavaScript on this forum works for however I have an issue. We need two different persons stamp on the PDF , the code only allows one use stamp if I try another stamp the code doesn't work. Can someone please help me with the code for multiple stamps on multiple/all pages - it would help a lot !! 

January 20, 2016

Great question and answers. Thank yo all. Super

Participant
January 4, 2016

Just use the watermark feature.  You can select a source file and add it to all of the pages.  No code.

Participant
January 5, 2017

In watermark feature and also in stamp don't have transparency, There is a solution to put some sing form a draw on all pages?

Mr_Mcgibbletts
Participant
December 5, 2014

All,

First time poster here.  Let me first start out by saying WOW this forum has saved my bacon, so special thanks to all the posts.

I would like to ask if it is possible to do the same thing as listed above, however, to place a number range (i.e. only apply to pages 700-900).  Is this possible, and how would I do so?

Also, if i wanted to place a hyperlink over the stamps, is their a similar javascript that I could execute to copy the same hyperlink of the stamps I just applied in pgs 700-900?

Special thanks to anyone who can help!!

March 9, 2012

Thom Parker had a solution of sorts on AcrobatUsers.com:

http://acrobatusers.com/forum/javascript/automatically-add-stamp-all-pages-pdf/

Hope it helps you out.

Inspiring
January 8, 2013

Hi Sabian, have you gotten this work?

I copied the following script (below) from the thread, but can't seem to get it to work...

// Assume that the stamp is the only// annot on the page

var annt = this.getAnnot(this.pageNum)[0];

var props = annt.getProps();

for(var i=0;i lt this.numPages;i++){

props.page = i;

if(i != this.pageNum)

this.addAnnot(props);

}


I ran it the java consule but it gives me an error about missing an ;

Not sure whats wrong.

arunas36741820
Participating Frequently
July 8, 2016

Hi Again,

Thanks for replying so fast. I now tried the below code as you suggested but it still gave a syntax error. I am copying/pasting all information from the console:

// Assume that the stamp is the only

// annot on the page

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);

}

SyntaxError: syntax error

1:Console:Exec

undefined


I get the below error msg

[Markup    1 0c54b1bf-eb32-4c4d-921e-ade99cd1a898]

when I try to run the code in console