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

Certificate of Completion - Date Stamp

zei-mgilvey
Registered: Aug 2 2011
Posts: 3
Answered

Greetings,

Is it possible to make a form that will automatically add a date stamp to it.? Here is the scenario: a user completes a series of questions through an eLearning module. At the end of it, they click on a button/link that takes them to a page that has a PDF in it. The PDF has a fillable form so they enter their name into it and at some point, maybe when they get to the pdp, it is time/date stamped for that user. They print the PDF out and give it to their supervisor. Needs to work with Reader.

Make sense?

Maybe it's not possible to get the stamp to be added as soon as they get to the PDF, maybe they have to push a button on the PDF to have it added? I don't know what is possible or if it is possible. We would just like to have some way to get a date stamp onto the PDF. The PDF doesn't have to be downloaded, it only needs to be printed as hardcopy, although having an option to have the PDF emailed to the user might be an option as long as it can only be printed.

Mark

My Product Information:
Acrobat Pro Extended 10.1, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
This is done all the time, but the companies generate the PDF server side and the user has not input for the certificate. The user's name is obtained by the login to the course or site, the course title comes from the taken course, the score comes from the results for the test, and the date comes from the system and is adjusted to the user's local time. I would look at using an FDF file to fill in a PDF form of read only form fields and providing the user with the filled in PDF. A server side product that flattens a PDF filled in by an FDF would be the best solution.

George Kaiser

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I don't think you mean a real stamp. The word "Stamp" has a special meaning in the PDF world. It sounds like you mean you want a Date imprinted on the document. And yes, all you need to do is to put a read only form field on the PDF where you want the date to appear. Then select an action to write the current date/time into the field. Could be a button they push or something else. See the articles at this site on Date/Time scripts, there are examples that could be useful

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

zei-mgilvey
Registered: Aug 2 2011
Posts: 3
Thanks for your ideas. I will check out the other posts if I have to get deeper into it. I really like George's suggestion, that sounds like the ultimate way to go about it. Thom, yes, that is more what I'm looking for and I found it. A user on the Adobe forums suggested I apply the following JavaScript to the "name" entry box in the Validate tab and make sure my date field is set to "read only" and is called "date":

// Get a reference to the date field
var f = getField("date");

if (event.value) {
f.value = util.printd("mm/dd/yyyy", new Date()); } else {
f.value = "";
}

It works like a charm! So far, I'm hearing this will due for now but maybe I'll end up doing what George suggested. Thanks guys!

Mark

zei-mgilvey
Registered: Aug 2 2011
Posts: 3
Accepted Answer
Thanks for your ideas. I will check out the other posts if I have to get deeper into it. I really like George's suggestion, that sounds like the ultimate way to go about it. Thom, yes, that is more what I'm looking for and I found it. A user on the Adobe forums suggested I apply the following JavaScript to the "name" entry box in the Validate tab and make sure my date field is set to "read only" and is called "date":

// Get a reference to the date field
var f = getField("date");

if (event.value) {
f.value = util.printd("mm/dd/yyyy", new Date()); } else {
f.value = "";
}

It works like a charm! So far, I'm hearing this will due for now but maybe I'll end up doing what George suggested. Thanks guys!

Mark