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

Add 3D annotation to a pdf document using Javascript

nbaditela
nbaditela's picture
Registered: Oct 25 2007
Posts: 22

Dear expert, Can I add a 3d annotation to a pdf document. To be specific what I want to do is invoke the "Add 3D Content" dialog using javascript. Is it possible? if the question is not clear please let me know. This is very much needed as we wanted to dynamically add 3d annotations to the pdf document whose pages are dynamically created? Appreciate your help in this regard.

My Product Information:
Acrobat 3D 8.0999999999999996447286321199499070644378662109375, Windows
thomp
thomp's picture
Expert
Registered: Feb 15 2006
Posts: 4411
There's no JavaScript API for this, but you can call the menu item for the 3D tool with the "app.execMenuItem()" function. To find out how to find out what the menu item name is, download the "menu item report generator" from this web page:

[url=http://www.windjack.com/products/freestuff.php]http://www.windjack.com/products/freestuff.php[/url]

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

nbaditela
nbaditela's picture
Registered: Oct 25 2007
Posts: 22
Thanks for the information. How can we feed the area, where the 3d annotation will be placed, dynamically?