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

document date\time stamp

joannab
Registered: Jun 18 2008
Posts: 2

I am using Adobe 8 Pro and wondered if any one would be able to provide me with all steps needed in creating a javascript to include the current date and time that a PDF is printed.

Thanks in advance for any assistance that is offered.

My Product Information:
Acrobat Pro 8.1.2, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Without more specific information about any other users, other versions, etc, I would suggest using the water mark form text and not saving the PDF after the water mark is applied.

The following placed in the "Will Print" document action will add the date formatted "mm d, yyyy-mm-dd" 1/4 inch from the bottom using 1o point font:

this.addWatermarkFromText({
cText: util.printd("mmm d, yyyy", new Date()),
nFontSize: 10,
nTextAlign: app.constants.align.center,
nHorizAlign: app.constants.align.center,
nVertAlign: app.constants.align.bottom,
nHorizValue: 13,
nVertValue: 13,
nStart: 0,
nEnd: this.numPages -1
});

There are other methods where one could add a field to each page and then use 'Will Print' action to fill-in the formatted date and then using the "Did Print" action to clear the field.

George Kaiser