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

javacode custom stamp

juenfam
Registered: Mar 15 2007
Posts: 4

Hi,
 
I would like to create a custom stamp that has 3 variables, one page incrementing variable that prompts you for the starting page and each time the stamp is applied the variable increments by 1. And the other 2 variables are constants but is prompted for the user to supply the constants. As an example:
 
ATTACHMENT (prompted incrementing variable) OF (prompted constant) FOR FDEO (prompted constant)
 
Example: ATTACHMENT 1 OF 12 FOR FDEO R1916
 
Could you help me with this please!
 
Thanks,
Mark

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Have you read this article?

[url=http://www.acrobatusers.com/tutorials/2007/dynamic_stamp_secrets/]http://www.acrobatusers.com/tutorials/2007/dynamic_stamp_secrets/[/url]

The only other thing you need is a persistent value. You can use a "Global" value. Unfortunately, in acrobat 8 and beyond, global values are only global within a single document, so if you want the incremented value to be persistant across documents, or invocations of Acrobat your out of luck.

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

juenfam
Registered: Mar 15 2007
Posts: 4
I'm sorry, but I don't know what you mean by a "persistent value" or a "Global" value. Could you please elaborate a little more? I have read your dynamic stamp article.
Are you saying that every time I use the stamp tool the stamp will prompt me for a page number and I enter that number.And the rest of the info such as "ATTACHMENT OF 12 FOR FDEO R1916 is jus written into the stamp as text?