I usually work with Acrobat 9 (Reader/Pro) and have created a 3D PDF with a lot of javascripting at the document level and 3D annotation level. I recently tried viewing the PDF in Acrobat X and discovered that all the functionality that I encoded in the 3D annotation has been stripped. The document level javascripts seem to all work, including the one's that accesses the 3D context. Has anyone encountered this? Is there a work around?
It looks like the administrators have selectively blocked some 3D JavaScript functionality on our latest Acrobat Reader X install. I noticed that javascript that are embedded with the 3D annot has been disabled on Reader X. However, 3D scripts executed at the PDF document level does work, i.e. when you access the 3D context like:
context3D = getAnnots3D(0)[0].context3D;
Can you set up 3D event handlers at the PDF document level? For example, can you do something like this?
context3D = getAnnots3D(0)[0].context3D;
myMouseHandler = new context3D.MouseEventHandler();
myMouseHandler.onEvent = function(event) {
console.println("test");
}
context3D.runtime.addEventHandler(myMouseHandler);
I'm away from my work computer (i.e. no access to Acrobat Pro) so I can't try this out. Will this work?
Thanks so much Dave. I'll have to try porting all the code from the 3D annot to the document side in a similar fashion. I found a post where someone tried to do this but encountered all sorts of problems (http://forums.adobe.com/message/1146287). My code is a good amount more complex so I'm a little worried. Hopefully it'll work out.
North America
Europe, Middle East and Africa
Asia Pacific