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

access pdf functions from html webpage via javascript?

samoht
samoht's picture
Registered: Mar 2 2007
Posts: 2

I would like to access the javascript functions of an embedded pdf in a webpage. How can I do this? for example: Press a button to start the animation of a 3D annotation.
Would be great if you could drop me some lines of code! Thanks a lot!

My Product Information:
Acrobat 3D 8, Windows
thomp
thomp's picture
Expert
Registered: Feb 15 2006
Posts: 4411
Communication is possible between JavaScript on an HTML page and JavaScript in a PDF being displayed on that page. However, it is a very limited process and more than just a few lines of code. Please take a look at the "IE browser/Acrobat Intercommunication example on this page.

[url=http://www.windjack.com/resources/howto.php]http://www.windjack.com/resources/howto.php[/url]

Scroll down to the "Extreme JavaScript" examples.

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

fatomeipdf
fatomeipdf's picture
Registered: Dec 29 2009
Posts: 1
I have an HTML page with JavaScript in the header of the page. How can I convert the HTML page to PDF while preserving JavaScript functionality in the PDF file?
elizas
elizas's picture
Registered: Dec 2 2009
Posts: 1
Hi,
I am eliza.I think the following link on java tips might be helpful.Check

http://www.mindfiresolutions.com/JavaScript-82.php