Help with Acrobat js created the menu button

I have to use a short javascript that creates a menu button. The js script is in the correct Acrobat JavaScripts folder. I use Acrobat Pro 8.1.2

var oButObjAddSigningPage =
{cName: "AddSignPage"}
cEnable: «event.rc = (app.doc!» (= null)",
cExec: "AddSigningPage()."
cLabel: "add a signature Page."
cTooltext: "add signature page in the current document."

app.addToolButton (oButObjAddSigningPage);
{catch (e) {console.println (e) ;}

The AddSigningPage() function"is in the same script file.

Problem: The button loads and displays correctly (dimmed) If Acrobat is launched. If a pfd file is then loaded the button comes alive and the function works OK.

But button is not displayed if Acrobat is launched by clicking on a pdf file.

Help please.

The entrance that fits the function 'app.removeToolButton' is the name of the button of the toolbar, not has been used to create.  Try this:

app.removeToolButton ("AddSignPage");

The first thing you should check is the toolbar "add-on".  After loading your document, and when the toolbar button does not appear.  Right-click on an empty part of the Acrobat toolbar to display a list of all individual toobars.  Is there a bar of modules?  Is it verified?

To determine if your folder level script has been loaded and executed, test the function created in this script.

Run it from the console window


The code for the function will be returned if it is has been defined.

To determine if your toolbar button has been loaded, run this code in the console window.

lst var = app.listToolbarButtons)
for (var i = 0; i)<>
If (.cName lst [i] is "JSAppToolBar")
Console.println (LST [i]);

the "JSAppToolBar" is the internal name of the toolbar "add-on".

However, from what you described, it seems that if you've hit a bug.  Probably a timing issue.  What are the characteristics of this file?

Thom Parker
WindJack Solutions
The source for PDF Scripting Info

The Acrobat JavaScript Reference, use it early and often

Tags: Acrobat

Similar Questions

  • Help with a table for the many buttons of MC

    Hello. I am a very new flash user and working on a flash project that has 50 movie clip buttons.

    Each button will be different so I plan to 50 buttons in the library. Each button will have 4 States - upward, downstairs, Upover, & Downover. There are 4 keyframes button, 1 for each State, with a stop() on each keyframe.

    Action script I have to press '1' is attached at the end.

    Ok. Here's where I'm stuck. What I want to do is to use an array to store the value true or false for each of my buttons so I hope I did not copy and paste this code 50 times and change the name of the button. It seems that I should be able to use the 1 section of the code to change the State of some I press the button. I just don't understand the tables and how a MC to refer to a table.

    Everyone mind help me a little?

    Let's back up a step or two. This actionscript as I wrote it is expected
    to be placed in a space of script of frame on the same scenario as the buttons
    themselves. Each button instance must have an instance name, "btn1",.
    ETX. I guess you did. These button instances must be in
    the same framework that the ActionScript. In other words, if the buttons exist
    in frame 1, then the ACE should also be Framework 1.

    1. the button instance names table must have a relative to path
    each of the buttons. The names cannot have quotes around them. The
    reference is the name and path of the instance. So, if the buttons are
    an another movieClip then you should include the name of the element with the
    each button name: example (buttonClip.btn1, buttonClip.btn2, etc.). This
    It is essential for the second part to work properly.

    The loop will use the references button in the table and assign the
    enabled property and its value for each button, then it will assign each
    the functions of each button. This is what you were after,
    a function that will work for each event for each of the

    Given the reference to instances of button is false, all the rest
    will fail.

    Take a look at this example,, this should help
    to explain the process. In this example, the buttons are in a movieClip.

  • BlackBerry smartphones HELP! I lost all my application icons and the menu button does not work!

    I don't know what I did.  All the application icons are moved from the home page.   The menu button does nothing. The trackball does not have anthing. The only thing on the screen is the time, date, battery, new mail envelope, signal and volume. I pulled the battery and it has no effect. I don't know what to do. Help!

    Hey, JSammy.  I had mine works again with the help of someone from another site.  Here's what you need to do: press the green call button, then the menu button.  Select options, then on options General, highlight "dial from homescreen" and the value. Save and exit. Now on your home screen, press "O".  After that, the General menu options will come.  Choose the option 'theme' and choose a different theme or return to the default value.  This should be all your application icons to reappear.  After doing all this make sure you go back to reset the "dial" since the homescreen on 'yes '.  I hope it works for you.

  • Problems of blackBerry Smartphones with the BBkey (also known as the menu button)

    Sometimes when I'm in an application and want to click on one of the list of the menu items (for example, delete), when I click on the menu button, which appears are some of the icons on the home page.  (I'm really tired of looking at this little Penguin...).  If I persist, I can usually get the pop-up menu option, but it's boring.  I'm sure it's a software problem.  I had this problem after a while on my first lap.  I had to replace the one because of other problems.  I used the switch device Wizard to transfer everything, so I guess he also transferred everything that is causing this issue.

    Everyone knows about this problem?  Any ideas on what to do?  I don't want to reinstall the OS - I'd rather upward with the problem.  Thank you.


    Hi again!

    The BBKey/Menu button has two functions.

    (1) to bring up a context menu of the application, you are

    (2) to bring up the Ribbon app-switcher (a list of all your applications in the course of execution so that you can change quickly from a different application...)

    The difference is how long you hold down the key. For 1, it is a support and quick release. For 2, it is down. Sometimes it gets bad, but with practice, you'll be able to get what you want most of the time (not 100% but... I always get a wrong result sometimes).

    Hope that helps!

  • How paste an accordion MENU navigation on a mobile scrollbar page and make it work properly? Like I can't pin, I keep it at the top of the page with scroll effect 0. It collapse, shows the menu buttons but does not close back up once reached the

    How paste an accordion MENU navigation on a mobile scrollbar page and make it work properly?

    Like I can't pin, I keep it at the top of the page with scroll effect 0.

    It collapse, shows the menu buttons but does not close back once it reaches the anchorpoint.

    Appreciate your help. Thanks.Guess I need to find another solution. Am an artist and don't know anything about coding.

  • Nexus 7 with Android 4.2 haw not the menu button. What to do when the instruction requires that action?

    Nexus 7 do not have the menu button!


    The menu is at the top right (next to the tab) on Nexus 7. Thus, any statement that uses instead, and has no button 'more '.

    Hope this helps,

  • Hold the menu button to redirect to another Web site.


    I designed this site with the Muse: in the menu, I would like the button "Online courses" to go directly to this Web page: BisTrainer

    Right now, I have it go to a page and then have a link on this page to the other Web page... I would just have a direct link between the menu button, but I can't understand how to do this in Muse.

    If someone could help me, it would be great!

    Thank you!

    Create a page in the outline view, right-click on it and choose context menu 'include without hyperlink '. Then, go to your menu, select the entry menu of this page and use the Hyperlink command in the upper command band to enter the desired address.

  • Cannot access the page customize or see the menu button!

    I had two modules different twitter (Twitbin and App Twitter). The first was one that I enabled again, because I wanted to see if it has improved for some time. After restarting my browser, however, most of my toolbars have been on different parameters. I managed to get my bookmarks toolbar, showing once again. However, now:
    -I can click on "Customize" under the tools, but the page appears empty (if any)
    -the orange "firefox" button at the top left disappeared
    -menu button (three horizontal lines) disappeared

    In addition, restarting somehow messed up my manager's Session module. It lists my tabs/windows have saved, but they never load.

    I searched everywhere, but have not found any real answers (page customize and SM have been the most frustrating of all this). I completely remove the add-on twitter, I chose not to use, but it changed nothing about how it was.

    Thank you


    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions and preferences.

    • Sites Web open is not recorded in less than 25 versions of Firefox.

    To reset Firefox, perform the following steps:

    For Firefox versions prior to 29,0:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the "Reset Firefox" line


    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    For Firefox 29,0 and above:

    1. Click the menu button

      click Help

      and select troubleshooting information. Now, should open a new tab containing your troubleshooting information.

    2. At the top right of the page, you should see a button that says "Reset Firefox"

      . Click on it.

    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • Effect of bevel on the menu buttons is displayed is not on all pages

    I have setup some simple buttons for our website ( with effects of bevel and shadow for different States. The menu buttons are set up on the master page and the master page is linked to the five pages on the current site. The bevel effect seems to come and go depending on what page you look at, and I don't know if it's a bug or something that I did not put right. Any suggestions for a fix or a place to start looking?

    Have you tried to create a blank page with this teacher? If the buttons work on the blank, it could be something on the 'Products' pages and 'Contact us' which breaks the CSS.

  • Make it appear at the top of the menu button - no background

    Not sure whether or not this belongs to the ActionScript forum.  Sorry if it is misplaced.

    I am creating a menu for a Flash project: the submenu below the Menu button - I would like it to appear above the Menu button when you click on the Menu button.   Tried everything I could think - here's the code: ("themeColor", "haloBlue");

    to import mx.controls.Menu;

    var cmMainMenu:Menu = Menu.createMenu ();

    cmMainMenu.addMenuItem ({label: "Glossary", instanceName: "miGlossary"});

    cmMainMenu.addMenuItem ({label: "Powerpoint", instanceName: "miPowerpoint"});

    var changeListener = new Object();
    changeListener.change = {function (evt_obj:Object)}

    var item_obj:Object = evt_obj.menuItem;

    If {(item_obj.attributes.label=="Glossary)"}

    getURL ("Glossary.html", "emptyClip");
    Else if (item_obj.attributes.label == "Powerpoint") {}
    getURL ("Powerpoint", "emptyClip");


    cmMainMenu.addEventListener ('change', changeListener);

    Add a button that displays the menu when you click on the button
    listener var = new Object();
    Listener.Click = {function (evtObj)}
    var button =;
    refer to the button
    The menu at the bottom of the button
    _root.cmMainMenu.Show (button.x, button.y + button.height);

    MainMenu_btn.addEventListener ("click", listener);
    exit.onPress = function() {}
    fscommand ("QUIT");


    Any help would be appreciated.   Thank you

    Change the settings in your show() method.

  • When I click on the menu button, why I can't see the historical option?

    According to the help instructions, in order to remove all or part of the history of my search, I'm supposed to click on the menu button and then select the option of history. However, when I click on the menu button, the story is not listed as one of the options.

    Hi, the button can be in 'other tools and features' in the section Customize the menu. If so, you can drag it to a location of your choice. If it is not visible, try clicking on Restore Defaults - more information - controls customize Firefox, buttons, and toolbars.

    You also bring up history by pressing Ctrl + H. Or you can bring up the menu bar (History tab) temporarily by pressing Alt, or if you want to stay there all the time, then right-click in the tab bar (but not on a tab) and a tick/check bar menu.

    If your question is resolved by this or another answer, please take a minute to let us know. Thank you.

  • Using the Menu button to close the Application

    Hi all, as a topic, I would like to ask how to implement the menu button to close the application? I mean there is option close when I'm menu press the button you want to close the application, if I press on it, what should I do about it?, thanks for your kindly help :-) so

    This is the default feature, you don't need to do something

  • Cannot fix the overlap of the menu buttons

    I added 2 .bmp images to my menu, but still has detected an overlap in the menu buttons. The new images are far to the left of the other menu buttons, but still draws a huge rectangle which extends far beyond the actual image and comes into conflict with the other menu buttons. How can I fix? Thank you!

    Finally, what worked was selection of background on the layers window in Photoshop before I imported the new image. I don't know why, but he no longer overlap. The thing is that the item I drag in photoshop was just work... Doesn't have to be a Jack of all trades! I don't understand enough about photoshop.

    I went back to the original version of the same project again to try to start over again - and this time I couldn't even drag the image in photoshop! He just gave me a black circle with a line through it!

  • The menu buttons changing size and position for the navigation of the site.

    Hello world.

    The menu buttons appear fine in preview mode, but as soon as I download on Business Catalyst all going PEAR - buttons decrease in size and change position!

    I tried everything I can think of, including the re-doing the menu from scratch and upload whenever I make a change. Whenever I duplicate the menu on another page is when the problem occurs, but as I said that's no problem at all in preview mode browser.

    The site link is: home

    I would appreciate your help, its driving me crazy I have to show to the client as soon as possible

    Thank you very much

    I've been clicking since the menu buttons and a few times, but always without strangely shaped or placed images.

    I think you can be assured that this is just a bug in your browser, probably some old picture caching that is too persistent to get deleted automatically. Refresh your page or clear the cache of your browser manually. That could help.

  • How to create a menu button of 3 lines for navigation on a mobile site?

    How to create a menu button of 3 lines for navigation on a mobile site and do trigger the Accordion Panel? I created my first sites on Muse and can't seem to understand.

    Download icons FontAwesome and install it manually.

    Add web fonts self-hosted | Adobe Muse CC tutorials

Maybe you are looking for

  • Qosmio F10-100 keyboard replacement

    I have a client with a Qosmio F10-100 which is a few months out of warranty. It has several keys that don't work at all and the removal of the key top and cleaning underneath had no effect. He wants to replace. So I have two questions; 1. where can I

  • Satellite A350-13 b - OpenGL and Radeon HD3650

    Hello My laptop is the Satellite A350-13 b with ATI Mobility Radeon HD3650. I found that I have OpenGL 1.1 (7/7) and partially 1.2 (1/8). I installed the latest drivers from ATI, modded with Mobility Modder site (also tried drivers from the Toshiba w

  • Error code 66A, 800706BE and 800706BA when installing updates.

    What should I do? All updates are important, and some have been waiting for a long time now that I have not had time to find solutions (and I'm still you wonder why should it be me who find solutions to AUTOMATIC updates...) Please advice clearly, I'

  • What should happen to have Vista and IE remember ID and passwords?

    When I get in the mail and other web services, I gives me the opportunity to have my ID and password 'saved' or recalled.  Every time I check this feature, but the ID and password are not stored.  Is there a function in Vista which must be authentica

  • BlackBerry Smartphones using the calendar/Agenda when you don't have a data plan.

    Hi all, I just got a BB Curve 9320 model to replace my LG dead.  I use the phone for my convenience only but I fondly I remember my old Palm Pilot and it's wonderful calendar application that allows me to keep track of my life and where I was suppose