These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Bates numbering INSIDE a custom stamp

kimberlim
Registered: May 24 2010
Posts: 2

Is it possible to create a custom stamp within a document that is a unique, sequential number?
I have multipage pdf where each page is bates numbered in the header.
Each page can have one to several questions on it. I want to stamp each question with a unique sequential number e.g. q 0001, q 0002

I figure I could customize the dynamic exhibit stamp posted by Rick Borstein on the Acrobat for Legal Professionals blog.

But --- there are over 500 questions and I'd like the computer to make sure each number is in sequence. I'd hate to get through and then realize I duplicated q 0020

Is that too dynamic for a dynamic script?

I'm on 8.2.1 pro

Thanks for any and all tips!
Kim

My Product Information:
Acrobat Pro 8.1.7
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, And you have the right idea, modify the script that Rick uses in the exhibit stamp. He's done several versions of the stamp so pick with care. What you should do is create your own stamp and then copy the text field from the one Rick created.

If you are only worried about a single document then you can use the current value of the text field on the stamp as the starting point. But if you need to deal with multiple document in multiple sessions of Acrobat then you'll need to set a persisten global variable. Rick does this in one of his variations.


Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script