| Subject: | Re: Calling external javascript function from embedded PDF |
It may be possible, but be aware that Acrobat JavaScript and web
browser JavaScript are not the same, and they work in a completely
different environment. Also, considering that web browser JavaScript
is a open barn door, when it comes to secuirity, you really have to
think about it. It is also likely that Acrobat/Reader does not allow
the execution of web browser JavaScript, even when run under a browser
(this may depend on the Acrobat version you are using).
In any case, it is very worthwile to read the security implementation
documentation by Adobe.
Now, how to do it. It is essentially calling an URL (using getURL() or
launchURL() ), as you would do from a link on a HTML page. And the
rest is up to you to test...
Hope this can help.
Max Wyss
PRODOK Engineering
Low Paper workflows, Smart documents, PDF forms
CH-8906 Bonstetten, Switzerland
mailto:max@prodok.com
http://www.prodok.com
[ Building Bridges for Information ]
[ Getting organized with PDFfolio ]
______________________
> I have an HTML page with an embedded PDF file in it in which I've placed
a couple of hotspots that have links to other HTML pages. However, inste
ad of simply going directly to the new page, I want to have the link call a
javascript function that is in the HTML page. If it's possible, how do
I call this javascript that is external to the PDF file?
| Posted: 06 Apr 2010 02:08 AM |
|