Skip to main content
Participant
Mar 9, 2012 2:24 PM UTC
Answered

Apply Stamp Tool to All Pages in a PDF?

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!

IliyaCorrect answer
Participant
Aug 1, 2014 9:02 AM UTC

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

37 replies

Participant
Feb 26, 2020 11:15 AM UTC

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.

Translate
Thom Parker
Community Expert
Community Expert
Feb 28, 2020 5:46 PM UTC

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

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
Feb 10, 2021 11:50 PM UTC

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 !! 

Translate
Jan 20, 2016 7:26 PM UTC

Great question and answers. Thank yo all. Super

Translate
Participant
Jan 4, 2016 9:03 PM UTC

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

Translate
Participant
Jan 5, 2017 6:28 PM UTC

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?

Translate
Mr_Mcgibbletts
Participant
Dec 5, 2014 4:51 PM UTC

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!!

Translate
Mar 9, 2012 7:41 PM UTC

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.

Translate
Inspiring
Jan 8, 2013 12:22 AM UTC

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.

Translate
Inspiring
Jan 8, 2013 2:01 AM UTC

That one line should be:

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

Translate