Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
4

Apply Stamp Tool to All Pages in a PDF?

Community Beginner ,
Mar 09, 2012 Mar 09, 2012

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!

103.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Beginner ,
Aug 01, 2014 Aug 01, 2014

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

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 05, 2014 Dec 05, 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!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 04, 2016 Jan 04, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 05, 2017 Jan 05, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 20, 2016 Jan 20, 2016

Great question and answers. Thank yo all. Super

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 26, 2020 Feb 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2020 Feb 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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 10, 2021 Feb 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 !! 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 11, 2021 Feb 11, 2021
Sir you can apply 1 stamp at once then flatten the page and close the file.
open the file again and apply 2nd stamp. Hopefully it will help you.

Regards
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 11, 2021 Feb 11, 2021

In the code, this line:

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

 

acquires the first annotation on the current page, then that stamp is copied. 

Replace that code with this,

 

var annt = this.selectedAnnots[0];

 

This code aquires the selected stamp. So 

1. Place a stamp on the page.

2. Select it,

3. Run the code whith my modification.

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2024 Feb 22, 2024

@Thom Parker Will this only work on Pro X or will it work on Standard? Also, Where do I enter this script  to get the batch "add-on"?

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2024 Feb 22, 2024

The Batch stamp add on is an "Action" that runs the JavaScript discussed in this thread.  Actions are only available in Acrobat Professional. Lookup the "Action Wizard"

However, the code itself will work in Acrobat Reader and Standard when run from the console or an automation script. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2024 Feb 22, 2024

@Thom Parker Sorry, im trying to learn - but where do I open the console or where do i run the automation script in Standard?

thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2024 Feb 22, 2024
LATEST

The console window is not directly available in Reader or Standard.

Download and install the Reader Consol tool here:

https://www.pdfscripting.com/public/Free_Acrobat_Automation_Tools.cfm

 

Then watch this video:

https://www.pdfscripting.com/public/images/video/AcroJSIntro/AcroJSIntro_ConsoleWindow.cfm

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines