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

Calling a document function at the document level

AndrewAlb
Registered: Aug 16 2007
Posts: 97

I am having trouble calling a function from the document level. I wrote a document level function. Then I created another document level script that would call that function every time the pdf opened. However, acrobat (Not livecycle) keeps telling me that my function is not defined.
 
The kicker is that if I call the same function, in the exact same manner from a button - it works fine.
 
What is going on here?
please help.

Andrew D. Albrecht, MS
Solutions Developer
ING USFS

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You could easily have a syntax error somewhere in the code.

You might also try moving the code that calls the function to the Page Open Action for the first page in the doc.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script