javascript - Auto calculate todays date when doc opens and add days to date in another field -
i using adobe xi standard , have pdf document text field “today” mouse java script of
var f = this.getfield("today"); f.value = util.printd("mmm/d/yyyy", new date());
problem 1) want automatically update when document opens instead of when mouse enters dont know how or place script in proper place.
i have text field labeled “text11” formatted date mm/dd/yyyy
i have text field labeled “21stday” want calculate 21 days date in “text11” field.
problem 2) have not been able script work. can please tell me how make work , place scripts novice @ doing this. thank in advance!
i believe there 2 potential ways this:
- an openaction entry in catalog root action dictionary of s(ub)type javascript
- named javascripts seem executed when document first opened in acrobat.
for fomer see table 3.25 in section 3.6.1 , section 8.5 in pdf v1.7 reference, , section 3.6.3 latter.
Comments
Post a Comment