Acrobat Java Script - Run On Open
Posted on 2011-10-06
A client has an Acrobat form document that has some Java Scripts. These need to be run on opening the document as they manipulate some of the field data and set the form up for use.
At present I have a hidden button that executes the code on the Mouse Over event. This works if the user happens to have their mouse over the document as it opens, but if not (e.g. if their mouse is to the side etc), the code does not run (until they move their mouse over the document)... This means that the form does not get correctly set up in these situations.
I am aware of the Document Will Close, Document Will Save etc actions, but I am suprised to not see a 'Document Opened' type event. Is there any way one can force Java Scripts to run as the document opens/loads?
The developer has Acrobat Pro V9. However, the end users will have Acrobat Reader only.
Thanks in advance.