PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

I've done a very simple prototype of this concept, but someone who tried
to take this further discovered a problem that I don't know how to solve
yet.

In the "Document JavaScript" dialog, he has several scripts, most of
which just contain functions, but now he's added one which also has
"inline" code, which references one of the functions defined in one of
the other document-level JavaScripts.  When this document is loaded, we
get "undefined function" errors on the call to the function defined in
the other document-level JavaScript.

Is this simply because our "DocOpen" script, with the inline reference,
is alphabetically before the script that defines the function referenced
from the "DocOpen" script?  I tried a quick test of creating a script
named "ZZZDocOpen" and copying in the existing "DocOpen" script.  This
appeared to work.  Is this an illusion?

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:owner-
> [EMAIL PROTECTED] On Behalf Of Aandi Inston
> Sent: Friday, July 25, 2003 11:38 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PDFdev] Setting scripts for document open?
> 
> > My colleague has a PDF that needs to do some initialization when the
> > document is loaded, and also some other work when each page is
loaded.
> > The Adobe JavaScript reference talks about both events, being
Doc/Open
> > and Page/Open.  Unfortunately, in Acrobat 5.05, the "Document
Action"
> > dialog shows several document actions you could attach to, but not
the
> > "Doc/Open" event.  Is there any way to write code which will only
> > execute when the document is loaded?
> 
> Not sure why you'd want an event. Aren't document level JavaScripts
> essentially the same thing?
> 
> Aandi

To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html

Reply via email to