GroupBrowser  




Go Back   GroupBrowser > Adobe Product Newsgroups > Adobe Acrobat > Acrobat SDK
User Name
Password
 
 
Thread Tools Search this Thread Display Modes

Enable pdf tool from javascript
Old 11-21-2008, 08:33 AM #1
Francesca@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Enable pdf tool from javascript

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

Thanks
Francesca

Sorry for my terrible english.
  Reply With Quote

Re: Enable pdf tool from javascript
Old 11-21-2008, 09:18 AM #2
Leonard_Rosenthol@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: Enable pdf tool from javascript

You can try ExecuteMenuItem(), but I don't believe it works in external applications like AIR.
  Reply With Quote

Re: Enable pdf tool from javascript
Old 11-21-2008, 11:10 AM #3
Francesca@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: Enable pdf tool from javascript

Thanks but I tried it with a normal browser, then without air environment, but it doesn't work.
I test it with many permitted commands like "Print", "LastPage", ...
I'm using Reader 9 then it may be the cause...
  Reply With Quote

Re: Enable pdf tool from javascript
Old 11-21-2008, 11:50 AM #4
Leonard_Rosenthol@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: Enable pdf tool from javascript

Are you using the menu name as you see it in the UI _OR_ the proper correct name as defined in the SDK? You need the latter.
  Reply With Quote

Re: Enable pdf tool from javascript
Old 11-21-2008, 11:56 AM #5
Francesca@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: Enable pdf tool from javascript

I'm using one of the menu name that I found in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\8.0\FeatureLockDown\cDefaultExecMenuItems because I read at this url <http://www.adobe.com/devnet/acrobat/downloads/Acrobat8_SDK_readme.html> that not all commands are allowed.
My statement is this:
app.execMenuItem("NextPage");
  Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump




Microsoft Newsgroups 1 | Software Newsgroups


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2003-2004 All Rights Reserved GroupBrowser LLC.