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

Read "Object Data" with javascript

AlanK
Registered: Sep 18 2006
Posts: 4
Answered

Is it possible to access "Object Data" values from Javascript. (I am referring to the information that shows in the bottom panel of the Model Tree pane when the "Object Data Tool" is used.

thanks
AlanK

My Product Information:
Acrobat Pro Extended 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If you are talking about the info on a 3D object, such as the number of Vertices and the Bounding Box, then the answer is that some of these value are availible in the 3D object model. You'll find everything you need in the appropiate reference.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

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

AlanK
Registered: Sep 18 2006
Posts: 4
Thanks for the reply Thom,

Unfortunately I'm talking outside of 3D. I have a bunch of point objects on a page and each of them has a few Property/Value pairs that show up in the Model Tree pane, bottom panel, when the object is selected with the Object Tool.

What I'd like to do is step through each object, get one of the values for that object and then add a Bookmark Annotation at the location of the object using the value as a URL.

The only information I can find in the JS reference is for setting a Search parameter to include "Object Metadata" in the search results dialogue - so I'm not very hopeful.

Cheers
AlanK
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Unfortunately, the Search object is the limit of Acrobat JavaScript's ability to interact with object metadata. There is no way for a script to know what graphic objects are inside a PDF, much less whether or not the object have any metadata on them:(

The whole object metadata thing is a bit under implemented.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

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