Question
Triggering an action with mousedown
I'm working on a single page pdf that includes a large number of buttons. I have been trying to write a script that will export a text file containing only the name of the button clicked. I'm going to embed the script in each button and use the mousedown event to trigger it.
I'm experiencing two problems:
- When I test run the script without having it embedded in the button (and using a text string to define the button name), the script executes properly and creates a text file containing the string. However, when I try to trigger the action with mousedown I get an error telling me that my document output variable isn't properly defined.
- Every time I open the pdf I need to re-initiate the script, before it can be run from the buttons. Is there a way to configure it so that it will be pre-loaded when opened?
Thanks in advance. I'm sorry about how vague my questions are, but I don't have access to acrobat at the moment.
