Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-12-31 17:42:01

MikeMaenpaa
Member
Registered: 2007-12-31
Posts: 0

Automatically add Stamp to all pages of PDF

Hi,
I have a 70 page document, which I need to apply the same logo "stamp" to.
How can I add it to all pages, in the same location, without hitting the stamp icon 70 times?
Mike


My Product Information:
Acrobat Pro 6 / Windows

Offline

 

#2 2008-01-04 14:15:57

thomp
Member

Registered: 2007-04-23
Posts: 1027

Re: Automatically add Stamp to all pages of PDF

Unfortunately, stamps are a kind of Annotation that are intended to be placed manually.  But there are a couple of things that can be done.

Number one is to consider using a watermark.  These give the same visual appearance of a stamp and Acrobat provides options for placing watermarks on all pages of a document, and watermarks can be placed with a batch process or script.

If you really need a stamp annotation, then you can write a script to copy the stamp to all pages of the document. This is actually very simple.  Each annotation has a set of properties that include the page number.  All the script has to do is to get a copy of the properties and change the page number to create an exact duplicate on another page. 

Try this:

1.  Open a PDF and add a stamp to the current page.

2. Run this code from the console window.

Code:

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

  }

Notice that I use "lt" inplace of the actual lessthan symbol.  Be sure to fix this up before running the code.

   I also haven't tested this code, so there may be errors.

Offline

 

#3 2008-01-07 09:44:15

MikeMaenpaa
Member
Registered: 2007-12-31
Posts: 0

Re: Automatically add Stamp to all pages of PDF

Thom,

Thanks!
This looks like a great solution! I'm new to Acrobat and Javascript customization. I appreciate your help.
It looks like I won't be able to try this out, as I discovered that when I got back to work, I only have Acrobat 6.0 Standard.
Mike

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in