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.
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.
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