Created Menu in JS in Acobat 7.0 that works and Don't work in 9.2

I created a menu that does a "Save As" which converts pdf to jpeg in Acorbat 7.0 on XP Pro OS.  In MS VBA code, I do the following VBA Code that execute the menu in Acrobat using "MenuItemExecute".
            Set gApp = CreateObject("AcroExch.App")
            Set AVDoc = CreateObject("AcroExch.AVDOC")
            If (AVDoc.Open(Path, Path)) Then
                Set AVPageView = AVDoc.GetAVPageView
                Set pdDoc = AVDoc.GetPDDoc()
                Set jso = pdDoc.GetJSObject
                'gApp.Show
                gApp.MenuItemExecute "SaveToJPEG"
                Set jso = Nothing
                pdDoc.Close
                Set pdDoc = Nothing
                AVDoc.Close (NoSave)
                Set AVDoc = Nothing
            End If
In order to run my custom Menu "SaveToJPEG" which is really a "Save As" to jpeg, I had to set the Edit>Preferences>JavaScript to "Enabled menu items JavaScripts execution privileges" and "Enable Acrobat JavaScript".    The above code works in my MS Access VBA program in Acrobat 7.0 running in XP Pro OS.
I am having problems running Acrobat 9.2 on Win 7 Pro, and I get the following error "An Internal Error Occurred" when it execute the code line gApp.MenuItemExecute "SaveToJPEG"
I made the changes to Edit>Preferences>JavaScript to "Enabled menu items JavaScripts execution privileges" and "Enable Acrobat JavaScript" too.
I am able to select "SaveToJPEG" from the menu bar only when I have a pdf file open, and it does make a jpeg !   This means my JavaScript of my menu works in Acrobat 9.2.
I also checked the registry HEY_KEY_Computer_User\software\adobe\adobe acrobat\9.0\JSPrefs\bEnableJS   ,   bEnableMenuItems,  bEnableGlobalSecurity
The bEnableJS is Hex 1, and the bEnableMenuItems is Hex 1, and the bEnableGlobalSecurity is Hex 1
I do know that acrobat 9.0+ does have the ability in the menu to do the same thing, but I want to keep my code compatible with acrobat 7.0
Then the MenuItemExecute will not work in multiple menu flow down like Export>Image>Jpeg.   I would also appreciate how to reference this menu too !
Can someone please help me !!
ThankYou,

I got the app.listMenuItems() to work.   I have to use the lower right side Enter key.  It appears that the two Enter keys don't work the same here.
I used the following script to list the menu items:
     var menuItems = app.listMenuItems()
     for( var i in menuItems)
     console.println(menuItems+ + "\n")
I got the following:   It was very long, but I will just print a few of them.   How do I spot the formal name for my "SaveToJPEG" menu item???  It is the second one.
This is what I see from app.listMenuItems() :
[cName:File, oChildren:[[cName:Open],[cName:SaveToJPEG],[cName:Organizer, oChildren:[[cName:OpenOrganizer],[cName:AddToOrganizer],[cName:OrganizerNewCollection]]], [cName:endOpenGroup],[cName:NewCollection],[cName:Collection, oChildren:[[cName:CollectionEditInAcrobat],[cName:],[cName:AddFilesToCollection],[cName:A ddFolderToCollection],[cName:CreateFolderInCollection],[cName:],[cName:SecureCollection]]] ,[cName:],[cName:NewDocument, oChildren:[[cName:NewDocFromFile],[cName:ScanMenu, oChildren:[[cName:ScanPreset1],[cName:ScanPreset2],[cName:ScanPreset3],[cName:ScanPreset4 ],[cName:Scan],[cName:],[cName:ScanConfigurePreset]]],[cName:Web2PDF:OpnURL],
It give me a message at the bottom that it "cannot continue printing to the console"
Can I send this to a file or some where else where I can see everything??   Maybe the formal names are toward the end ???   I don't see the formal name here????
Please Help ! !
Thank You,
Gary

Similar Messages

  • Somehow, I created 2 Appe ID's...1 from home and 1 from work.  I purchased additional space on iCloud with one ID, but I need to transfer it to the other.

    Somehow, I created 2 Appe ID's...1 from home and 1 from work.  I purchased additional space on iCloud with one ID, but I need to transfer it to the other.

    Having read some other posts I think I have answered my question. If I was somehow able to terminate my old (unwanted) account and Apple ID I would no longer be able to access the material I bought with that ID-  so I'm stuck. I have to learn how to manage that situation.
    This is unfortunate for Apple consumers. Life is complicated for families these days and this "rule" although it is in place to prevent cheating and fraud makes things unnnecessarily difficult for me and my family as in my niaevity (sic) with the online world I bumbled into this situation. Not everyone is out to rip off Apple - one of the worlds richest corporations- or the entertainers who market their work through iTunes.I would just like to be able to enjoy the entertainment I pay for where and when I like to on whichever computer is available to me. And I'm not terribly computer literate.   
    It would have been nice to have had the opportunity to speak just once to a real person in the employ of Apple to explain my situation to them.

  • Creating a chart in TFS showing test cases that pass and failed using lightweight chart in Team Web Access

    How to you build a chart in TFS that show test cases results.
    I'm using lightweight charts in Team Web Access.
    In Team Web Access I go into my project, then I create test cases under the TEST tab and then run my test manually.  Now I want to create a testing progress result chart.  I go into the TEST tab, then click on test plan and notice that
    there is no Chart tab.
    Is this tab configurable or am I missing something?

    To my knowledge, charts are only available for work item queries in TFS web access. If you want to generate test result charts, you can do that using the TFS reporting data in the data warehouse (if your administrator configured it when setting up TFS).
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • How to create menu bar in jsp page using struts-tles

    I have started working with struts-tiles. I want to create menu bar using struts-tiles. please guide me.

    I've done this very recently. In fact, tiles has very little to do with the menu itself.
    In your layout, define where you want the menu to go.
    <tiles:insert attribute="menu" />Now, in the actual file, create your menu structure. This part is up to you. I've used http://www.brainjar.com/ as a starting point for the client side actions.
    On my menu page, I call a method on a custom object that returns the menu bar object. Currently, I'm working on putting this menu into some sort of cached object so it doesn't have to rebuild it on every page request.
    Perhaps I've misread your post and you're looking to use tiles, in and of itself, to simulate menus? Otherwise, I hope my post helps.

  • Horizontal Dropdown Menu Buttons DON'T WORK

    Any suggestions please?!
    I am a novice Flash Developer and I created a horizontal
    drowndown menu in Flash with rollover submenus. The dropdown menu
    has buttons with Behaviors assigned to "go to webpage". The
    published .swf file works fine, links and all. It is only when I
    place the menu inside a Dreamweaver DIV that exists over another
    image DIV that the buttons don't work. The menu will drop down and
    can be rolled over, but it is when I try to click on the buttons to
    activate the links that nothing functions.
    It is worth mentioning that the buttons have an assigned "Down"
    state that doesn't activtate, so I know the buttons are incapable
    of even being clicked on. The problem is within Dreamweaver,
    not the flash movie menu. Perhaps I am overlooking a widely know
    trick to making this work? Am I missing a simple line of HTML??
    Anybody have any experience with this?
    Greatly Appreciated

    Hi,
    May I please have the URL of the site and any specific pages you'd like me to take a look at?

  • Rotating Menu - Buttons don't work inside MC's

    Hello,
    This is my first post here and it would be great if I could
    have your help to solve this little problem:
    Flash CS3 | AS2 | Rotating Menu
    I'm creating a small animation in which I have a clock-like
    rotative menu.
    I found the code for this in the internet and made some few
    adjustments (mainly just took somethings I didn't needed out)
    In my file I have 6 circles that are all movieclips that make
    part of a circular menu that rotates everytime you click on one of
    the circles. Those movieclips are not on the stage, only on the
    library, and are being "pulled" into action by the actionscript.
    I need those movieclips to act as menu buttons, so I made a
    button inside each one of them.
    The problem is that the buttons don't work. They don't do
    what they are suppose to (load another movieclip). The solution
    must be quite simple because it doesn't make sense not to work, but
    I'm unable to get it...
    In the original file they worked as buttons that linked to an
    URL but I removed that because I didn't need it. Just need them to
    act as normal buttons and play another MC...
    Do you have any idea why this happens?
    Does it have anything to do with the fact that the circle
    movieclips that contain the buttons are not actually on the stage?!
    The code I'm using in the buttons is rather simple:
    on(release){
    movie1.play();
    I would appreciate your help on this!
    Thank you,

    Hi Odisey2,
    I appreciate the time you took to try to help me!
    I only have 1 frame in my stage, and its the one that
    contains the actioscript code.
    I also have on stage the MC i'm trying to make the button
    play. The first frame of that MC is empty and has a stop, so that
    its not visible at first.
    Then I wanted that when you click the button (the onde that
    is inside the MCs that are being "pulled" by the code I sampled) it
    would play that MC on stage.
    The code I'm using in the burron is pretty simple:
    on(release){
    movie1.play();
    I've tried to put "_root" before, like this: "_root.movie1"
    but it doesn't work as well.
    Any other idea?
    Do you think it has anything to do with the fact that the
    circle movieclips that contain the buttons are not actually on the
    stage?!
    Thanks,

  • Back button and menu button don't work after spilling beer on it. How do I fix this?

    A few months ago on a night out beer was spilt on my iPod, I let it dry out and it still worked fine.
    However a couple of weeks later my back button started to play up, only working some of the time I pressed it, and then stopped working all together.
    My menu buttong has also recently started to play up, with me having to press it and hold it down for it to work, and this only working some of the time. Any ideas on how this can be fixed? Or even how do I send it off to be fixed? My iPod is still within its one year warranty.
    Thanks in advance.

    Victoria ...
    Click here >   Apple - Support - iPod - Service FAQ

  • Adobe premiere elements 12 - how to create menu bar action for my inserted image button

    adobe premiere elements 12 - how to create menu bar action for my inserted image button without using their movie menu theme

    forbemag
    I do not think that I am completely focused into this completely, so let us see if the following is going to help.
    You are going to need a base for your button. When you mention "image" button, I am assuming that you are using that term to differentiate between a text button and a thumbnail type button.
    The menus (main and scene) take their origin in .psd files on the hard drive and strict nomenclature and structure for Layers Palatte. And, the buttons on the menus trace back to the menu markers on the Timeline, main menu marker and order of placement of scene markers. The scene thumbnail will only appear when there is a scene marker on the Timeline to which it.
    In view of all that
    Where have you already inserted this "image (button)"...into the Layers Palette of a Photoshop document or other? Is this "image (button)" in a structured Layer Group in the Layers Palette with sublayer groups, text layers, graphic/background layer"?
    Let me give you an example
    If you have a button (with thumbnail) on the main menu and you want that to open to a specific scene in your movie, then you use a main menu marker on the Timeline at the spot that you want that button to target.
    If I am getting closer to what you seek, then please further clarify the DVD navigational envisioned scheme.
    Thanks.
    ATR
    Add On...I did not see the exchanges between us and SG until after I had posted mine. I thought that your discussions were concluded. Please excuse the interruption.

  • Unable to create Menu Item List Buttons in Forms - Not Working!

    Hi guys,
    I need desperate help since I have been stuck on these for 2 days and I am unable to move forward!!
    I am trying to create a pdf form using Acrobat pro 9 and Adobe LiveCycle Designer ES. Since I am new to this, I have been browsing through numerous sites, forums and tutorials to learn about this. So far, I was able to create the forum with text fields, etc.. I am trying to have a column in my pdf form where the users can simply copy & paste image icons here..I was having difficulty with this already and have done numerous searches in google. In the end, I thought I am better off trying to use the "stamp" tool for this instead of image field. So this is what I did:
    1) I already placed the image icons (that the users will be copying & pasting) on my pdfs so users can simply click on it to select the image.
    2) I added a new bottom to this form which has the short cut to the menu item "copy" function. I labeled this button as 'Copy' and to this button, I added the following javascript for "Mouseup":
    app.execMenuItem("CopyFileToClipboard");
    3) Next I created another button that I called 'paste' and this button executes the "Paste Clipboard Image as Stamp Tool" menu. This button has the following javascript:
    app.execMenuItem("Annots:Tool:StampFromClipboardMenuItem");
    I thought that after doing the above, the user should be able to click on one of the images in the pdf, then click on 'copy' button and in the end click on 'paste' button that will then run an action so user can stamp this copied image to where ever they want in that file. But this is not happening!! I dont why?? Nothing happens when these buttons are clicked. I have made sure that the "Extended features in Adobe Reader..." is enabled and also tried running the above javascripts on my console window to test it and i know that the actual javascript code is not at fault since these functions works when I try the code through the debugger window. But I just cannot figure out why these menu item functions are not working when the buttons I had created are clicked!!! I dont know if what I have done is correct or if there is a easier way to achieve what I am trying to do!! Its a shame there is no simpler way for the end-users to copy and paste images to the columns in the pdf forms.
    please help me understand why the above button are not working....any help will be great!!

    Hi Paul,
    This is further to our email correspondence. I am just pasting your email response here since it may be useful to other newbies like me:
    "Ok here you go ......I had to add the new row via a script object as the new objects are not completely available until the script ends so I cannot resize the new row from teh current script.
    Then when we resize - we have to resize the row, the cells and the image ....we start with all existing subforms then we do it for the new row that was just added.
    Lastly I see that you have a delete row button. This will have to be part of the row otherwise we ill not know which row the user will want to delete .....unless you ask them (which is not good UI design)."
    I was really impressed the way you modified the script so the table height does not change when new rows are added. That did help me in understanding the methods and it will certainly be v useful to me in the future. I have been practicing and getting a hang of LS and I have actually decided to redesigned my form since it appears that trying to have a fixed table height is quite a bit of work each time a row is added, removed or changed, etc... Your advise so far have been v helpful and it has helped me in redesigned the form into a different layout. So far so good...However, I just have a few more clarifications regarding some hurdles I am facing:
    PS: I have emailed you a sample of my new form now so you can have a look at it.
    1) Dynamic Image fields:
    In this form, I have a subform that has a dropdown list and next to this, I have an image field. I want to change the image based on the selection in the dropdown list. I found a few samples and tutorials on this already and I tried 2 different approach for this. One works and the other doesnt.
    Method that works: What I have done here is, I added all the images in the form and have put their presence to invisible. Then using the javascript, I am making the image visible based on the selection in the dropdown list. I found this method somewhere through googling and it works.
    Method that doesnt work: Its similar to the above, but instead of putting all the images in the form, I just inserted 1 image field and then tried to change the url of this dynamic image based on the selection in the drop down list. But this method is not working. I tried inserting this jscript and nothing happens:
    switch (this.rawValue)
    case "1":
    myImages.value.Image.href=http://www.mysiteaddress.com/blah_blah.jpg;
    break;
    case "2":
    myImages.value.Image.href=http://www.mysiteaddress.com/blah_blah2.jpg;
    break;
    The 2nd method does not work. Although I know the method 1 above works and I am currently using it, I am just curious to find out why the 2nd method is not working? Did I get the script wrong or is this feature no longer allowed? I just thought that if the second method works fine, it saves the hassle of putting all the images on the form and then making them hidden. Instead, I just need to put one image field and then dynamically change its image based on the selection. I hope this make sense..please advise..
    2) Changing the background colour of the Dropdown list box:
    I am trying to change the bg colour of the listbox in the dropdown list object (only the listbox bg color and not the whole background color). So, I added the following script to the mouseEnter event and this works:
    var vName = this.somExpression;
    var fieldObj = xfa.resolveNode(vName + ".ui.#choiceList.border.fill.color");
    fieldObj.value = "255,255,225";
    My Problem: The above script works so I dont need to change anything there. But, I also want to add another script to the mouseExit event to change the fill color to its default once the mouse leaves the dropdown lists. Initially, this field has no fill colour and the border fill style is none. The fill color is only added during the mouseEnter event. How do I change the bg color fill back to none during mouseExit after the above script is executed on mouseEnter?
    (NOTE: If you see my form, I have used the above scripts for the dropdown list only in "boxSubform[0]".)
    3) Changing the length of the Dropdown List box:
    I only have about 1.6 inches workspace to add this dropdown list box. However, the length of some lists (list items) in this dropdown list box is actually longer and the remaining part is cut out. So, I added the following script to increase the dropdownlist length and it does not work the way I would have hoped...
    The script I have written so far:
    I added these to the mouseEnter event and it works fine -
    form1.pageSubform.dynamicSubform.Table1.Row1.boxSubform[0].MyDropdown::mouseEnter - (JavaScript, client)
    this.w = "2in";  //this is to to increase the width of the dropdown list
    I added these to the mouseExit event and it works fine too-
    form1.pageSubform.dynamicSubform.Table1.Row1.boxSubform[0].MyDropdown::mouseExit - (JavaScript, client)
    this.w = "1.625in";
    When I tested the form with the above script, this is what happens:
    1) First when you move the mouse over this field, the width increases. Similarly the width decreased when you move away.
    2) So, even if this is clicked, the list box is opened with this 2inch width so thats good.
    3) There are no problems when the mouse is moved over these list items as well. However, this does not look good when the dropdown list item is clicked with its item lists open and then the mouse leaves this area. In this case, as soon as the mouse leaves this area, the mouseExit script runs and hence it makes the drop down list width to shrink eventhough the list items are still open. How do I resolve this? I was thinking about this and I thought the possible way to overcome this is by writing a javascript for the mouseExit event executing something like this:
    if this dropdown list is open,
    then  this.w = "2in";
    else
    this.w = "1.625in";
    I am not sure how to write a jscript for the above?
    (NOTE: If you see my form, I have used the above scripts for the dropdown list in "boxSubform[0]".)
    4) Hiding the alternative row shadowing for hidden columns:
    If you check out my form, you can notice that I have put the "close" button (button to delete table rows) on the left column and I have also put its presence to "Visible (screen only)". The parent table has got the 'alternative row shadow' checked. What I notice here is, when this page is printed, eventhough the first column's presence is set to "Visible (Screen Only)", it still prints the row shadow for this column and it looks bad. How can I fix this? Any help will be great!
    I have already emailed you my new form again so you can have a look.
    Thanks again Paul and I cant thank you enough for your help. I am sooo happy to see such a great support and resources available here since it can be a nightmare for some newbies like me... :-)

  • Create Menu items from table data?

    Wondering if anyone knows of a way(if even possible) to create menu items on logon from table data where the menu data is stored?

    You'd have to make the menu code generic as well - probably the bet bet would be to have each menu item calling a common procedure but passing in the menu item selected - you'll then have to cross reference that with the current function of that menu item and do the right thing.

  • Created Menu in JS in Acrobat 9.2 & Issue with Acrobat 9.4.4

    I originally created this Javascript on Acrobat
    7.0 because there was not a means for me to
    convert a pdf to jpeg.
    When I updated to Acrobat 9.2, the following javascript that I have been using until I have acrobat 9.4.4.
         // mystuff.js - Adobe Acrobat custom menu addition
         app.addMenuItem({ cName: "SaveToJPEG", cParent: "File", nPos: 0,
          cExec: "this.saveAs('/c/football/JPEG Folder/Rept.jpeg', 'com.adobe.acrobat.jpeg')" });
         // End of media.js
    In Acrobat 9.4.4  I have the problem of creating this jpeg now.
    I see this issue with Acrobat 9.4.4 on Win XP Sp2 (or Sp3 if its the latest), and on Win 7 (64-bits) pro.
    I believe there is now "Save As" menu option that will allow me to save a file to jpg now.
    I manually tried this using the tool bar and its all works.
    I call this operation using MS Access VBA code.   This is part of the VBA colde that I used:
                Path = pdfFile & T![DirName]
                pptFile = Left(T![DirName], Len(T![DirName]) - 4) & ".ppt"
                Set gApp = CreateObject("AcroExch.App")
                Set AVDoc = CreateObject("AcroExch.AVDOC")
                If (AVDoc.Open(Path, Path)) Then
                    Set AVPageView = AVDoc.GetAVPageView
                    Set pdDoc = AVDoc.GetPDDoc()
                    Set jso = pdDoc.GetJSObject
                    gApp.Show
                    gApp.MenuItemExecute "SaveToJPEG"
                    Set jso = Nothing
                    pdDoc.Close
                    Set pdDoc = Nothing
                    Set AVPageView = Nothing
                    AVDoc.Close (0)
                    Set AVDoc = Nothing
                End If
                OldName = "c:\football\JPEG Folder\Rept.jpeg": NewName = "c:\football\JPEG Folder\Rept_Page_" & Format(Count, "000") & ".jpeg"
                Name OldName As NewName
                Count = Count + 1
    I am able to call the menu item "SAVE AS", but I don't know how to pass parameters to this ??   I was able to called the "Save As" as follow:
         gApp.MenuItemExecute "Save As"
    How would I pass the parameter like I have in my Javascript ??
    I need help to resolve this issue to work with Acrobat 9.4.4 ?

    You would need to first set some javascript globals from your VBA code and then call your menu item.

  • Can Adobe Muse create menu systems in an InDesign document?

    Can Adobe Muse create menu systems in an InDesign document?

    Hi Golden Reuel,
    Since InDesign has limited capability of integrating HTML and Muse is all about HTML. I dont think you can create menu systems in InDesign.
    For Better Clarification I would suggest you to post the query on the Muse Community.
    http://forums.adobe.com/community/muse
    Thanks!
    Eshant

  • [CS3][JS]Create menu permenently?

    Hi,
        Is it possible to create menu with menu item permenently? I have placed my script file in the scripts panel folder inside the scripts folder.
    I have added a menu at the main menu bar. It works until I close the Indesign.When I restart Indesign the menu is not working. I have included the statement #targetengine "session" in my JavaScript.According to the specification the target statement creates object that persist until close the Indesign. But my question is can I create menu with menu action permenently like other menu in the menubar such as File menu,Edit menu......
    Please advice me.
    Regards
    Kumar

    Absolutely.
    Persistent scripting engines are created when InDesign starts. To do that your script needs to be in a folder names "startup scripts" somewhere underneath the "Scripts" folder (not Scripts Panel folder).
    The easiest way to do it is to create a folder (myFolder), under that, create a folder, "startup scripts", and place your script into "startup scripts".
    On my web site, I have (in Free Stuff) a sample project that is certainly more complex than you describe here; however, it does show exactly how to get menus and context menus to work.
    Regards
    Bob

  • How do i create "Save As" option to file menu in Numbers version 2.3 (554). I have done this previously but cant remember how its done. My OS is 10.9.3

    How do i create "Save As" option to file menu in Numbers version 2.3 (554). I have done this previously but cant remember how its done. My OS is 10.9.3

    You can follow the steps in this article on TUAW to change the five-key shortcut for Save As… to the old tthree-key shortcut.

  • Create PDF portfolios - Portfolios not listed under Create menu

    Upon purchase of Adobe Acrobat XI Standard, I was able to download PDF Portfolio templates.
    Under help file, instructions say to go to Create and select Portfolios.
    No Portfolio option is listed in the Create menu.
    How can I correct this?

    Hi Sue,
    Unfortunately, the PDF Portfolios feature is only available in Acrobat Pro. Acrobat Help | Create and customize PDF Portfolios
    Best,
    Sara

Maybe you are looking for

  • Save for web error in PS CC 14.2.1

    Whenever I try to save for web in PS I get an error message.  I've tried deleting the preference file as suggested in older posts, but it did not work.  I'm running Windows 8.1. Any help would be greatly appreciated!

  • No /559 wage type in posting run - Program RPCIPE00

    hello everyone, I have created a posting run for an employee via report RPCIPE00. the scenario is employee was not paid in period 26/2007 (26 in 26), he got paid in 26 in 27 ( period 27/2007) but there was no payment  for 27 itself only the inflow fr

  • How to map text from Request Offering to custom textbox

    Hi! I have new custom Tab in Incident form with new textbox. I need this textbox fill with text added by user on Portal, but I can't figure out how to map user input to this text box. I can't see it in Request Offering form. Also when I create bindin

  • Linksys wrt54g setup issue

    hello all, ive recently setup a cisco modem with a linksys wrt54g i had lying around for a friend.   i enabled the security (WPA/WPA2) and changed the name for the wireless connection. I restart every thing and i see the new name wireless secured con

  • Adobe Premiere Pro CC no longer works

    In (the) student (version) of Premiere Pro CC via the (Creative Cloud) app. on (It) installed, but every time (I try to launch) the program, to Adobe Premiere Pro CC no longer works. Other apps do work. Message was edited by: Kevin Monahan Reason: tr