How do I run my JavaScripts in Acrobat X?

I have some JavaScripts that in Acrobat 9 are menu items available in the Tools Menu. In Acrobat X Pro I don't see them. The JavaScripts are in the C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Javascripts. How do I runt the scripts in Acrobat X Pro?

The menu item still exist, but is not displayed, but the items on the menu should still be available to JS.  You can use the  'exeMenuItem' to run the item to run the hidden item.
You will see the missing executable menu items if you use JS to crate a list of menu items. This will show the menu items that have not been moved to the Tool Well.

Similar Messages

  • Need Help Running a JavaScript in Acrobat Pro 4

    How does one run a JavaScript in Acrobat Pro 4? I know it is an old version, but does someone still know?

    Ok, I have figured out how to run a JavaScript file. What is wrong with the following code - are these commands not supported in Acrobat 4?
    app.addMenuItem({ cName: "Collate Document", cParent: "Tools", nPos: 0, cExec: "collate()"});
    Title: Collate Document
    Purpose: User is prompted to select document to insert/collate.
    Author: Sean Stewart, ARTS PDF, www.artspdf.com
    function collate()
    this.insertPages (0,"scan0002.pdf", 0);
    // create an array to use as the rect parameter in the browse for field
    var arRect = new Array();
    arRect[0] = 0;
    arRect[1] = 0;
    arRect[2] = 0;
    arRect[3] = 0;
    // create a non-visible form field to use as a browse for field
    var f = this.addField("txtFilename", "text", this.numPages - 1, arRect);
    f.delay = true;
    f.fileSelect = true;
    f.delay = false;
    // user prompted to select file to collate the open document with
    app.alert("Select the PDF file to merge with; this should be the odd-numbered pages:")
    // open the browse for dialog
    f.browseForFileToSubmit();
    var oddDocPath = f.value;
    var halfOfPages = this.numPages;
    // insert pages from selected document into open document
    for (var i = 0;i < halfOfPages; i++) {
    this.insertPages(halfOfPages-i, evenDocPath, i);
    // remove unused field
    this.removeField("txtFilename");

  • I have loaded adobe acrobat using download assistant.  Now, how do I run or install adobe acrobat?

    I have loaded adobe acrobat using download assistant.  Now, how do I run or install adobe acrobat?

    You run the EXE file named "AcrobatPro_11_Web_WWMUI.exe"

  • How to call/run a javascript from desktop

    Hi all
    I need to run a script from desktop for an automation.

    You can put the script in a trusted location then double-clicking it will work. This came up recently. I've not tried the search of the forums yet, but a search on trusted location might bring that previous topic up.
    Dave

  • How to run script on Adobe Acrobat 9 Pro

    HI all i'm new to Adobe Acrobat 9 Pro Scripting, and I'm hoping someone can help me how i can run any javascript on Adobe Acrobat 9 Pro.  I have no idea which place (location) take script then run.
    Like Adobe InDesign CS4 script location=>
    Application>Adobe InDesign CS4>Scripts>Scripts Panel>JavaScript
    Run Path =>
    Window>Automation>Script then run
    Any insight is appreciated!
    Thank you so much adv.
    [email address removed by host]

    “All scripts are executed in response to a particular event. There are several types of events.” (Adobe, 2006, p. 40). You may want to execute your script as a console event. In this case, use the JavaScript Debugger console (Adobe, 2006, p. 21). For more information, read the manual Acrobat has provided online: Developing Acrobat Applications (Adobe, 2006).
    John
    Works Cited
    Adobe Systems Incorporated. (2006). Adobe® Acrobat® SDK 8.0 Developing Acrobat Applications Using JavaScript for Microsoft® Windows® and Mac OS®. Edition 1.0, November 2006. Retrieved on Jan. 5, 2012 at http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_devel oper_guide.pdf.

  • How to execute acrobat javascript thorugh acrobat plugin???

    I need to perform a task using javascipt...but i am not able to run javascript from my plugin...I tried it using AFExecuteThisScript method given in  API but it asks for " _gAcroFormHFT"..How can i import HFT into my plugin???
    Is there any other method to execute a javascript from acrobat plugin??

    You need to declare a (global) variable something like:
    HFT gAcroFormHFT;
    Then initialise it in your plugin's PluginImportReplaceAndRegister method, something like:
    ACCB1 ASBool ACCB2 PluginImportReplaceAndRegister(void)
    gAcroFormHFT = Init_AcroFormHFT;
    return true;

  • How to set the File Path to run a javascript using Plugin Code?

    Hi All,
    Im new to Indesign Plugin Development.Can any one help me out with my problem.
    What i want to do is to run a javascript using Plugin Code.When i went through this forum i was able to find out that i should use the IscriptRunner Class to automate this.I could also figure out that the Member Function to use is "CanHandleFile" &"RunFile".
    The first parameter in CanHandleFile & RunFile Member Function is to specify the path of the JavaScript File i suppose!I could also find out that IDFile has to used to set the file path Information.
    But im clueless how to set the Javascript FilePath using IDFile.Can any one help me how to do this?Any Code Snippets Please?
    Waiting for reply.
    Thanks
    myRiaz

    Hi,  Andreas<br /><br />  Can you explain this in detail? I found it in your post before.<br /><br />  The content of elements are returned through the Characters callback function:<br /><br />From ISaxContentHandler.h:<br /><br />/**<br />        Receives character data<br /><br />The parser will call this method to report each chunk of<br />        character data. SAX parsers may return all contiguous<br />        character data in a single chunk, or they may split it into<br />        several chunks. But all characters in any single<br />        event must come from the same external entity so the<br />        Locator provides useful information.<br /><br />Note some parsers will report whitespace using the<br />        IgnorableWhitespace() method rather than this one (validating<br />        parsers must do so).<br /><br />@param Chars The characters from the XML document.<br />        */<br />virtual void Characters(const PMString& chars) = 0; <br /><br />  What i have done is implement my own SAXContentHandlerServiceBoss, and in my file XXXSAXContentHandler.cpp, I override the fonctions StartElement, EndElement, and Characters() like below: I add the PMString xmlData to collect the file content:<br /><br />class XXXSAXContentHandler : public CSAXContentHandler<br />{<br />void XXXSAXContentHandler::Characters(const WideString& chars)<br />{<br />xmlData.Append(chars);<br />}<br /><br />void XXXSAXContentHandler::StartElement(const WideString& uri, const WideString& localname, const WideString& qname, ISAXAttributes* attrs)<br />{<br />xmlData.Append("<"); xmlData.Append(localname); xmlData.Append(">");<br />}<br />void XXXSAXContentHandler::EndElement(const WideString& uri, const WideString& localname, const WideString& qname)<br />{<br />xmlData.Append("</"); xmlData.Append(localname); xmlData.Append(">");<br />}<br /><br />}<br /><br />and in my program, I use the code below to call the fonction I overrided, but I dont know how I can get the String xmlData I defined in the XXXSAXContentHandler.cpp<br /><br />InterfacePtr<IK2ServiceRegistry> serviceRegistry(gSession, UseDefaultIID());<br /><br />InterfacePtr<IK2ServiceProvider> xmlProvider(serviceRegistry->QueryServiceProviderByClassID(kXMLParserService, kXMLParserServiceBoss));<br /><br />InterfacePtr<ISAXServices> saxServices(xmlProvider, UseDefaultIID());<br />InterfacePtr<ISAXContentHandler> saxHandler(::CreateObject2<ISAXContentHandler>(kXXXSAXContentHandlerServiceBoss));<br />saxHandler->Register(saxServices);<br />bool16 parseFailed = saxServices->ParseStream(readStream, saxHandler);<br /><br />Can you give me any help?<br /><br />Thanks and regards!

  • Acrobat X freezes when I run a JavaScript Action after about 200 files.

    Acrobat X freezes when I run a JavaScript Action after about 200 files, batches with less than 200 files work well.  I can watch the Acrobat.exe process in the resource monitor and when the Threads reach about 2000 and the Working Memory reaches 500mb, Acrobat freezes.  The JavaScript creates 2 redaction areas, applies the redaction, then saves the file to another location.  I've tested it on both Windows Server 2008 and Win7 32bit. I'm running Acrobat X Pro fully update to 10.1.10.

    It is possible to have the Redaction tool search for a text string across multiple PDFs without using the "Action" wizard or batch processing. You will have to learn the exact steps to properly set the properties for each string of text. You can also review the items marked for redaction and either accept, remove or adjust as needed each one.
    There are 3rd party tools that can also redact PDFs and they existed long before this feature was added to Acrobat. Appligent Document Solutions Redax..
    Appligent even has a server based product for large amount of files or using watched folders.

  • How to allowed JavaScript in Acrobat Reader and make it default

    Hei,
    I want to allowed JavaScript my Acrobat Reader but I have to always go to edit->Preferences and so on... It has to be done all the time when i reboot my computer. Can I some how make default to my reader. (I know that it risk to allowed that but still I want to do it)
    Thank you for your help!!

    I would try the 'Repair" option, usually under 'Help", and then set the JavaScript option.
    If this is an organization installation, check with your IT help desk to see if they have a policy about this issue.

  • How to run InDesign Javascript without Interruption

    Hi all,
    I want to run InDesign Javascript, while running the script nobody should interrupt. How to do it???
    Thanks in Advance,
    Mahesh

    [Jongware] wrote:
    You might also ask the user to un-plug the keyboard, let the script run, and then plug in the 'board again. (Altho' that might lead to a practical problem: "Remove keyboard, then press any key to continue". I'll leave that to solve for the OP.)

  • How to edit and reload JavaScript code without restarting Acrobat?

    As a programmer, I wonder if there is a better way to do things that I still cannot figure out.
    At the moment I write code in Notepad++, save it in Acrobat's Javascripts folder, open Acrobat, test the code and find out it doesn't work (no surprise there ).
    I then have to close Acrobat, edit the code in Notepad++, save, open Acrobat and find out again that it doesn't work.
    Rinse and repeat for an inordinate amount of times, especially at the beginning of a new "scripting project".
    The JavaScript Debugger is great but, unless there's something I don't know, doesn't let me edit the code directly in its window.
    As you have worked out already I'm referring to folder-level scripts, so the "Document JavaScripts", "Set Document Actions" and possibly even the "Edit all JavaScripts" buttons are in fact useless.
    Adobe Acrobat and Adobe Reader... ain't no Visual Studio and I don't want them to be but please tell me there's a way to write code a little bit more on-the-fly
    Thanks!
    Roberto

    Thank you both for your posts!
    I spent a few days working and experimenting with Javascript in Acrobat and my first impressions are sadly confirmed.
    try67, you are absolutely correct, but the console approach for testing and developing doesn't work if the add-on is heavily dialog box based (because debugging is disabled).
    Not to worry though, any difficulty can be overcome and frankly it doesn't take that long to relaunch adobe anyway
    Thanks for your time!

  • How to run the javascript in httpunit

    I need to run the javascript code in the HttpUnit.I appreciate if any body helps out in this regard.

    You can't. Don't try. Try something else... Women and children first.... Run away. Run Away !!!!
    Without pushing the point too hard we had three seriously bright sparks (and a halfwit McManager) trying to answer that exact question for the better part of a month before they just have up and ripped all the fancy (read stupid) dhtml menu's out of the product to get it to run with httpunit.
    I've never had anything to do with html-unit so I can't comment on it.
    Keith.

  • How to use mailForm methode (javascript) in adobe reader 9.3?

    Hi! I want to know if it exist a way to use the mailForm method (this is javascript) in adobe reader 9.3?
    Or, are there any equivalent method? I want to send by email a FDF with my PDF.
    When I run my javascript, I got the following error: "NotAllowedError: Security settings prevent access to this property or method.
    Doc.mailForm:55:Field FI_ENVOYER:Mouse Up ".
    (Here, FI_ENVOYER is the name of my button).
    Tanks for the help!

    My document have this rights:
    Protection method:                              None
    May be open in:                                  Every version of Acrobat
    Print:                                                 Allowed
    Assemble the document:                    Unauthorized
    Copy of content:                                 Allowed
    Copy of content for accessibility:         Allowed
    Extract pages:                                   Allowed
    Comments:                                       Allowed
    Filing form fields:                               Allowed
    Affixing signature:                              Allowed
    Creating pages models:                     Unauthorized
    Is "Creating pages models" or "Assemble the document" can prevent the use of the mailForm method?
    I know that the mailForm requires privileges, but how can I allow these two rights who are unhauthorized?
    Is there something else I can do to be able to use the method "mailForm" without having the "NotAllowedError"?
    Tanks

  • Javascript in Acrobat 9.0 Standard

    I am trying to find my way through running Javascript in Acrobat. I have a sample PDF I downloaded from the web (acrotips6006.pdf) which has embedded Javascript. It has buttons which allows you to connect to a database a populate a form with data from the database.
    My question is simply how can I see the Javascript which is embeddedin the PDF. I've had little luck finding where to go to see the script (the documentation says the code is contained in one Document Level Javascript).
    Thank you.

    The last post was based on AA5. On my tablet with AA7, the document level JavaScript needed is located under Advanced>JavaScript>Document JavaScripts. There are the same 6 scripts listed for your example (found at PlanetPDF). I am listing the Connect script below:
    function Connect()
      try
        app.alert("Attempting Connection ...");
        dbConn = ADBC.newConnection(dbName);
        if(dbConn == null)
         throw "Error connecting to AcroTips";
        stmtObj = dbConn.newStatement();
        // Execute the SQL statement inside the database
        stmtObj.execute(sqlToExecute);
        // Move the Result Set to the First Record Found
        stmtObj.nextRow();
        // The current row object
        rowObj = stmtObj.getRow();
        // Insert the values of the first Row of data into the
        // form field values.
        FillForm(rowObj);
        // Let the user know that a connection was made.
        app.alert("Connected to AcroTips");
      catch(exc)
        console.println(exc);
        throw "Unable to Connect to Database";
    It looks interesting, but discussing the scripts is probably more appropriate in the scripting forum. I was trying to help identify the location. I assume it is a similar location name in AA9, but Adobe seems to be good at moving menu items around.

  • Handling 3d objects using JavaScript for Acrobat 3D Annotations API

    I am trying to learn how to handle 3d objects with this manual: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_3d_api_reference.pdf
    When I execute some code, for example,
    myTimeHandler= new TimeEventHandler();
    myTimeHandler.onEvent= function( event )
    console.print( "Current simulation time is:" + event.time );
    console.print( " second(s)" );
    runtime.addEventHandler( myTimeHandler );
    I get an error like this:
    TimeEventHandler is not defined
    Why?
    P.S. I have 3d object in the document, and can get it with function getAnnots3D.

    You have to run the code in the context of the 3D annotation (by attaching the script to the annotation's properties panel, or by right-clicking the active 3D scene and choosing "run a javascript". You cannot run it in the console.

Maybe you are looking for