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

Enable pdf tool from javascript

sheila07
Registered: Nov 21 2008
Posts: 7

Hi,
I'm developing an air application that loads a pdf file and I want to interact with it through my application's user interface. Now I'm able to change the displayed page, change zoom value and zoom type but I have some problem activating the "hand tool" and "dynamic zoom tool". I consulted Adobe's "Javascript from Acrobat API Reference" and "Developing Acrobat Applications Using Javascript" guides but I didn't find nothing about that.
Could you help me? Do you know if it's possible to enable/disable hand and dynamic zoom tools from pdf javascript?

Thanks
Francesca

jbfreels
Registered: Feb 19 2008
Posts: 63
You can just call the menu item that calls the tool. That's what I have done in the past.
sheila07
Registered: Nov 21 2008
Posts: 7
Thanks but I tried it but I had some problem.
To do a test I used this statement app.execMenuItem("NextPage"); but it doesn't work :-/