PDF stamping

How about something completely different. Adding some JavaScript into acrobat to create your own customised stamp.

I have a great client who asked for something very different.  He used to get invoices and statements by mail, and would stamp them with an old fashioned rubber stamp when paid.  The stamp allowed room for the date, amount, cheque number, accounts code and signature.  He now finds that most correspondence is by email and are PDF’s.

Rather than print them out and stamp, fill out, sign and rescan back to PDF, he wants one step.

stamp-orig

Acrobat has always allowed you to add stamps to any document and it’s pretty easy to setup. But to do this job we need to enter new data into every stamp.  That is called a dynamic stamp and is a bother to setup.  It takes a bit of JavaScript programming.  You can have any image and text you want as the body of the stamp, from there with a bit of coding you get an interactive window popping up and asking for the variables to add as text to the stamp.

Here is an example script:

if(event.source.forReal && (event.source.stampName == "ENTER_PAGE_TEMPLATE_ID_HERE"))
{
 var rgEmpty = /^\s*$/;
 var cName = null;
 var cDfltName = event.value;
 
 while((cName==null) || rgEmpty.test(cName))
 {
 cName = app.response({cQuestion:"Please Enter a Name",
 cTitle:"CADzation Stamp Data Entry", // Optional
 cDefault:cDfltName, // Optional
 cLabel:"Name:" // Optional
 });
 
 if((cName==null) || rgEmpty.test(cName))
 {
 app.alert("Please enter a Name",1);
 cDfltName ="";
 }
 }
 
 // Set Name Value
 event.value = cName;
 }

If you want to have a play yourself, here is the link to some great notes [link].

We are slowly traveling to a paperless office, and sometimes it is in little steps, like this example of replicating a physical process on the computer.stamp-new