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

Java Script Date Stamp wont print in 8.0 Reader or 7.0 Pro only in 6.0

ssaggar74
Registered: Feb 14 2008
Posts: 4

I have created some company controlled documents for our company Intranet. I added a small java script using both 6.0 and 7.0 Pro, that basically will show the date at the footer level when the page is printed. The problem I am having is that the date stamp will only show up when printed in either Adobe Pro 6.0 or Reader 6.0. Any attempt to print these documents in Adobe Pro 7.0, Reader 7.0 or 8.0 wont show the date any ideas?

My Product Information:
Reader 8.1.2, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Are the print options set to print the comments/annotations/markups.?

Acrobat/Reader does not print stamps and other markups/annotations by defualt. One can also set the application preferences to always print the printabale annotations.

George Kaiser

ssaggar74
Registered: Feb 14 2008
Posts: 4
I have tried all those options to no avail. What I am basically doing is Creating a document action and adding the javascript which is shown below. I then place the script where I want it on the form, secure the document and done.

var newdate = new Date();
var thisfieldis=this.getField("mydate");

var themonth = util.printd("mmmm",newdate);
var thedate=util.printd("d",newdate);
var theyear=util.printd("yyyy",newdate);

thisfieldis.value=themonth+ " "+thedate+","+theyear


Document valid for this Page 1 of 5
print date only: