Javascript for Acrobat XI

Hello everyone.
Using the creative cloud I just upgraded from Acrobat 8 to Acronbat XI.  I cannot find the Javascript documentation for that version of Acrobat, nor can I find the SDK for that version of Acrobat.   I was able to find the Acrobat 8.0 Javascript documentation, but that's about the latest I can find.  Is that the latest version?
TIA!
John

Here is the link to the documentation for Acrobat JavaScript versions 8 on.
Here is the link to MDN JavaScript documentation and other resources. JavaScript Guide & JavaScript Reference.
The material in the Acrobat SDK is not dynamic while the Acrobat JavaScript for version 9 and version X are both dynamic and can easily be updated by Adobe.

Similar Messages

  • Creating folders in Javascript for Acrobat

    I cannot find a method for creating a folder in Javascript for Acrobat.  I know how to do it in InDesign but the same object (i.e. the folder object) does not seem to be available for Acrobat. 
    I have a multi-page PDF in a folder.  I want to create a subordinate folder in the same folder as the PDF and then extract all pages to the subordinate folder in the folder holding the PDF.  How do I do  that?
    In other words:
    MyFolder/MyMultiPagePDF.PDF
    I create
    MyFolder/Extracted/
    and then I create
    MyFolder/Extracted/PDFPage1.PDF
    MyFolder/Extracted/PDFPage2.PDF
    MyFolder/Extracted/PDFPage3.PDF
    etc.
    I know how to do the extraction, but I do not know how to create the folder on the fly using Javascript.
    Please help, anyone.
    R,
    John

    Thank you, Mr. Johnson.  I appreciate your candor and your quick response.
    R,
    John

  • What's a browser compability of JavaScript for Acrobat ?

    I have a pdf with two fields that needs to be filled by user.
    I am using a Javascript for Acrobat to display a prompt dialog asking user to enter a data. it works pefectly fine on my local computer, but whenever I open it using various browsers I am running into different problems:
    Firefox:  20.0.0 No prompt dialog is showing up. Error (warning) message in developer's console: [09:49:17.064] Warning: TODO: unimplemented annotation type: FreeText
    Safari: 6.0.4 Certificate is displayed sideways. No prompt dialog is showing up. No errors in the developer's console.
    Chrome  26.0.1410.65  : works fine!
    Opera  12.15 nothing shows up, no pdf, warning or anything else.
    So it doesn't work on 3 out of 4 browsers that I checked.
    My pdf is embedded into the following file.
    http://uwf.edu/cde/mobileweb/certificate.cfm
    Is there a way to make it work on those browsers?

    Each of these browsers has its own PDF viewer. Some of them can optionally be set up, by the end user, to use Adobe Reader instead.
    (Don't overlook Windows 8 IE10, which defaults to running Windows 8 Reader.)
    And don't overlook the mobile browsers on iPad, iPhone, Android...
    Now each piece of software works, or doesn't, according to the designs and errors of their own developers. It would be a useful and helpful project if someone compared whether these viewers support interactive forms, and JavaScript, and if so what part works... but I have never seen the results of such a project. There are other pitfalls: Mac Preview, and hence Mac Safari, will fill a form but return a form which appears blank.
    You might try insisting that your users use Adobe Reader.

  • Need Help with Javascript for Acrobat Pro 9

    Hello,
    I am creating a PDF form in Adobe Acrobat Profession 9.  Not having a lot of experience with Javascript, I have found this forum very helpful and have used many of the script examples for other issues I have had.  I was hoping someone could help with the following script, I have tried many variations, cannot get it to work.
    var ratio = this.getField("ratio").value
    var concentration = this.getField("concentration").value
    var result = this.getField("result").value
    if(ratio.value>=50.00)
    {result.value ='PASS';}
    if(ratio.value".value>=40.00)
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 49.25))
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 39.25))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 48.50))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 38.50))
    {result.value ='PASS';}
    else
    {result.value = 'FAIL';}
    This is just a piece of the code  The concentration values run from 61 through 99 and the ratio value varies for each concentration value, there is a high ratio and a low ratio.  The result of this field with populate the results field with a PASS or FAIL.  This is not working......any help is greatly appreciated!

    Thanks George.  I updated the script to:
    // Get a reference to the result field
    var ratio = this.getField("ratio");
    // Get a reference to the result field
    var concentration = this.getField("concentration");
    // Get a reference to the result field
    var result = this.getField("result");
    if(ratio.value>=50.00)
    {result.value ='PASS';}
    if(ratio.value >=40.00)
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 49.25))
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 39.25))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 48.50))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 38.50))
    {result.value ='PASS';}
    else
    {result.value = 'FAIL';}
    However, I am still getting a FAIL result even when the ratio is 50.00 or equal to the passable ratio.

  • 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.

  • Documentation for Acrobat X Javascript?

    Where is documentation for Javascript in Acrobat X?  The help file mentions:
    "For more information, see the JavaScript™ for Acrobat® API Reference on www.adobe.com/go/learn_acr_javascript_en (PDF, English only).", but the linked page does not contain any information for Acrobat X.

    I do not think there have been any changes to Acrobat JavaScript in Acrobat X, so all the documentation for Acrobat 9 should work. There is an SDK for Acrobat X Portfolios that might have some new JS objects.
    I still reference the version 8 reference and the version 5 reference.

  • Basics of Javascript programming for Acrobat and PDFs

    Hello,
    I have a PDF file that I have added a form to, in order to programatically edit the fields within the PDF.
    I have found lots of useful resources for javascript in acrobat, including the Acrobat Javascript SDK reference PDF, which I have read.
    My problem is, most of the examples I see ask you to do the following:
    "To add a document level JavaScript in Acrobat, go to 'Advanced >  JavaScript > Document JavaScripts', enter a name for the script and  click 'Add'."
    I would like to enter the javascript directly into the HTML, and then edit the fields via HTML, as opposed to adding the javascript into the PDF file ahead of time.
    For example, this code changes the date of a field when the doc is opened:
    // variable to store whether document has been opened already or not
    var bAlreadyOpened;
    function docOpened()
      if(bAlreadyOpened != "true")
        // document has just been opened
        var d = new Date();
        var sDate = util.printd("mm/dd/yyyy", d);
        this.getField("todaysDate").value = sDate;
        // now set bAlreadyOpened to true so it doesn't
        // run again
    bAlreadyOpened = "true";
      else
        // document has already been opened
    // call the docOpened() function
    docOpened();
    Can I just stick this in an HTML file that hosts the PDF and have it change the fields?
    The reason being, I need to pull the data for the form fields from a database. I know there is Database stuff bulit into the SDK (ODBC access, which they call ADBC)
    But it would be so much easier if I could just write some javascript into the browser.
    Thanks in advance for looking at my question!
    -- shawn

    I don't think you can do this in HTML.  However, you could open the PDF file from an FDF download, which would contain the Acrobat Javascript that you want to execute.  Thus, instead of opening the PDF directly from a URL, the URL would lead the user to an HTML (or, better yet, an ASPX) file that downloads the FDF stream (MIME type: "application/vnd.fnd").  The FDF not only contains the actual URL of the PDF file, which will cause the PDF to open in the browser, but it can also contain the Acrobat JavaScript code that you want to use, so you would not need to embed the JavaScript in each PDF file.
    If you take this approach, you'll probably want to purchase a 3rd-party product (e.g. FDFApp.Net) to help you generate the FDF output because getting FDF syntax exactly right can be difficult.

  • Javascripts folder for Acrobat X on MAC

    there is a Javascripts folder for Acrobat 9 under the install location, but I do not see that for the acrobat x installation on MAC.
    any ideas?
    thanks!

    Run this code in the interactove JavaScript console:
    app.getPath("app", "javascript");
    But since that can be difficult to do with certain mac keyboards, here is what it give me for my system with Acrobat 9:
    /Macintosh HD/Applications/Adobe Acrobat 9 Pro/Adobe Acrobat Pro.app/Contents/MacOS/JavaScripts/
    It should be similar for Acrobat 10.
    For Reader 10, I have: /Macintosh HD/Applications/Adobe Reader.app/Contents/Resources/JavaScripts/
    If you're looking for the user JavaScript folder, try this:
    app.getPath("user", "javascript");

  • XML format for Acrobat JavaScript

    Hi,
    This is my first posting to any Adobe forum, so please bear with me...
    I'm interested in the XML format for Acrobat JavaScript.  I'll be using an external editor (UltraEdit).  When I do (in Acrobat 8) Advanced-->Document Processing-->Edit All JavaScripts, UltraEdit starts off with this:
    //-----------------Do not edit the XML tags--------------------
    Interesting, but not very useful.  If I look at some existing PDF files containing JavaScript, I see things like:
    //-----------------Do not edit the XML tags--------------------
    //<Document-Level>
    //<ACRO_source>DocOpen</ACRO_source>
    //<ACRO_script>
    /*********** belongs to: Document-Level:DocOpen ***********/
    OK, this is better.  In fact, if I look at enough existing PDF files containing JavaScript, I could probably figure out the XML format by myself, including the XML format of tags like <Page-Actions>,  <AcroForm>, etc.  However, it would be far easier to get the specification of the JavaScript XML format -- for example, what is the format of the text following the "belongs to:" string within the various types of XML tags?
    I *presume* this is documented somewhere but I couldn't find it.  If someone has the Acrobat JavaScript XML format specification, it would be greatly appreciated.
    Thanks.
    Dave
    P.S. Another possible approach would be to create JavaScripts myself using Advanced-->Document Processing-->Document JavaScripts, and then see what XML is created based on the code I enter into the GUI, e.g. form code, functions, etc. This also seems somewhat inefficient, presuming again that the JavaScript XML format is already documented.

    Thanks for the additional information.
    I played with JavaScript some more, using my preferred editor, UltraEdit, which I attached to Acrobat.  I thought I would be able to take a JavaScript program from one PDF file (source file) and do a copy & paste into another PDF file (destination file).  While I can do the paste (again, via UltraEdit) into the destination file and can do an UltraEdit Save, when I go back into UltraEdit via Advanced --> Document Processing --> Edit All JavaScripts, the JavaScript I pasted from the source file to the destination file isn't there in the destination file.
    From this, I concluded that I'll need to create the Document-level JavaScript and the form field Javascripts (e.g. a JavaScript triggered by a "Mouse Down" in a button) via the Acrobat GUI's.  Acrobat doesn't seem to like it if I bypass the GUIs and just attempt to paste the code directly into the PDF file via an editor.  By not using the GUI and just doing the cut & paste as I did, I'm probably missing some part of the code setup/creation process that Acrobat needs to know about.
    This is why I originally asked about the syntax for the pseudo-XML, thinking I could just copy the pseudo-XML/JavaScript code from one PDF file to another, and then modify the code to reflect the needs of the destination PDF.  Now I understand the need you mentioned to use the Acrobat GUIs to set up the initial XML/JavaScript structure.
    Once I have the XML structure set up in the destination file (e.g. a JavaScript triggered by a "Mouse Down" in a button), I can obviously copy code snippets into that <AcroForm> sections, I just can't *create* the original "Mouse Down" <AcroForm> sections via the editor.
    Another approach I could follow would be to make a copy of the original source file and change the name of the copy to the desired destination file name, and then start modifying the code in the new (destination) file -- presuming that's the easiest path to get the desired functionality created.  This way, I wouldn't have to manually (via the Acrobat GUI) create all of the <Document-Level> and <AcroForm> sections.
    Thanks for your (and others') help, let me know if I'm missing anything.
    Dave

  • Javascript won't work - JavaScript for Reader Mobile API Reference (Android)

    I have created a Form with the new Adobe Acrobat Pro DC (trial version).
    The Javascript code just won't work on a mobile phone.
    Doc - JavaScript for Reader Mobile API Reference (Android this shows that what I want to do is supported.
    But not even the simplest command will work on my phone. (I am using Adobe Acrobat DC - PDF reader for Android)
    Any suggestions of what I could be doing wrong?
    Best,
    Menno

    A Doc.getField() should work.. Try small steps: Create a document with two fields (e.g. Text1 and Text2), then create a custom calculation script for Text2 that uses the following code:
    event.value = this.getField("Text1").value;
    Does this copy the data you enter in Text1 to Text2?
    Then, add a third field ("Text3") and a button with the following MouseUp JavaScript action:
    this.getField("Text3").value = this.getField("Text1").value;
    Does this work? It actually works for me. To save you some work, here is a link to the test file I've used: http://khkonsulting.com/files/AUC/AndroidTest.pdf

  • PDF Form javascript for making readonly field by using button

    Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.

    Do you want your button to be made read only?
    One starts with Acrobat JS Reference.
    // make all fields in a form read only;
    var oField; // variable for field being processed;
    // loop through the form fields;
    for (var i = 0; i < this.numFields; i++) {
    // process each field name;
    oField = this.getField(this.getNthFieldName(i)).readonly = true;

  • 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.

  • 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");

  • What I need to write plug-in for Acrobat Reader ?

    Hi There,
    I want to write plugin for Acrobat Reader, that's mean I need visual studio or is enough just to have some c compiler ?
    One more things. I find out I can use a javascript code do hide toolbar menu and menu item and I founded some inforation that is not possible use that way to disable context menu on right click mouse button. Is that correct ?
    Best regards,
    grynien

    Look at the documentation:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhel p.htm?&accessible=true
    Look at 'Developing for Adobe Reader' in 'Introduction to SDK'.

  • 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.

Maybe you are looking for

  • Fade up to Slide then Black

    I put together a simple DVD layout -- 1 video + audio program and 1 slideshow (27 slides). The Disc Info under Build shows 1.27 GB for the video and 527 KB for the DVD-ROM content. The slides range in size from 500 KB to 1.3 GB. After setting up a 10

  • Subcontractin by process order: ME2O

    Hello everybody, I’m implementing subcontracting by process order. I feel very unsuitable with the transaction ME2O that we use to post GI to the vendor. The problem is that we need insert the code of every components that we send. As an alternative,

  • Quicktime does not preview and quit unexpectedly when opening a file. Occurred after updating to 10.8.4

    Hey Apple Community! How are you guys? I got a problem please help me if you can: Ever since I updated to 10.8.4 my Quicktime is acting up. It doesn't preview video or audio files, and quits when I try to open a file. Here are some screenshots. It pr

  • Blue Download Now link is not working for me.

    When I go to the section of the site to download iTunes, I enter my e-mail address, and click the Download Now link.  Once I click the link, absolutely nothing happens.  Internet Explorer isn't "thinking" after I click.  Any suggestions?  I had ITune

  • Barcode Reader for Palm Pre

    Are there any Barcode Reader apps for the Palm Pre? Thanks!