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

JavaScript in Boxoball.pdf example

Stephan_Sonnenschein
Stephan_Sonnenschein's picture
Registered: Apr 18 2007
Posts: 4

[link=http://www.acrobatusers.com/tech_corners/3d/3d_gallery/index.php?galleryimage=boxoballs]http://www.acrobatusers.com/tech_corners/3d/3d_gallery/index.php?galleryimage=boxoballs[/link]
 
The Boxoball.pdf is one of my favorit example at the Acrobat 3D corner. I tried to investigate it with Acrobat 3D 8 Beta. Although it seems that the document allows all kind of editing and I can see part of the JavaScript code I can't get through to the actual script that does the interersting stuff. The debugger mentions a File called 'FloatingBalls.js' that is read but I have no clue where this file is. Is that a hidden attachment or something. Could somebody give me a short hint about the underlying structure?
 
Thanks a lot...
 
Stephan

My Product Information:
Acrobat 3D 8, Macintosh
thomp
thomp's picture
Expert
Registered: Feb 15 2006
Posts: 4411
You're right, this is a great example and it doesn't seem as if there is a way to export the 3D script. There may be in Acrobat 3D, but I don't have a current copy running. So I extracted the script directly from the 3D Annot with [url=http://www.windjack.com/products/pdfcanopener.php]PDF CanOpener[/url]

Here's a link to it.

[url=http://www.windjack.com/WindJack/TestFiles/boxoballs.txt]http://www.windjack.com/WindJack/TestFiles/boxoballs.txt[/url]

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