Acrobat Java Script - Run On Open

Posted on 2011-10-06
Last Modified: 2012-05-12
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.

Question by:DaltonCS
    LVL 20

    Accepted Solution


    Author Closing Comment

    Thanks for your reply - solved the problem.

    Sorry for the delay in replying to you - I have been working away...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Title # Comments Views Activity
    classnotfoundexception 3 28
    scores100 challenge 3 66
    bunnyEars2 challenge 6 46
    powerN  challenge 3 31
    Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
    *Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    This video teaches viewers about errors in exception handling.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now