Skip to main content
Participant
January 20, 2011
Question

Accessing Javascript console in Acrobat X Std

  • January 20, 2011
  • 5 replies
  • 27511 views

Good evening,

for some reason the "Ctrl + J" shortcut does not work on my Acrobat X Std. The shortcut does show up in the helpfile so I assume there is something wrong. Does anybody else have the same issue?

Thanks

    This topic has been closed for replies.

    5 replies

    vixentd
    Participant
    May 17, 2018

    THanks Karl. View tools javascript worked.  Not  permanent but can turn on when needed

    Karl Heinz  Kremer
    Community Expert
    Community Expert
    May 17, 2018

    This should be permanent, until you turn it off again.  You can also try to use the tools pane menu:

    vixentd
    Participant
    May 16, 2018

    I am having the same problem in Adobe Acrobat Pro X.  Under tools it does not show Java script.  I have tried control J and a window pops up but the java script is not showing in the control panel under tools.

    I tried to do a simple text and save it and then drag into the java folder but that did not seem to work.

    I need to change the expiry date on some through java script on a file that Was created on another machine that had the java script option showing under tools  Unfortunately I can not do it on my new machine. 

    Please help

    Inspiring
    May 16, 2018

    Exactly which folder did you place the text file, and what is the files name, exactly? It's necessary to rester Acrobat after you add or edit a folder-level JavaScript file for the change to have an effect.

    Participant
    May 21, 2013

    Not to resurrect a dead post, but this was just relevant to me. 

    I added a "Show Console" item to my Edit dropdown with this little bit of js added in the aforementioned folder:

    app.addMenuItem({cName:"Show Console", cParent:"Edit", cExec: "console.show()"})

    Participating Frequently
    June 15, 2017

    I have the same problem: Acrobat X, no access to console (ctrl-j no effect, Tools-Javascript has only one command: "Set document options"; the settings on preferences for Javascript do not include "enable interactive console" as instructed on otherwise clear page  https://acrobatusers.com/tutorials/javascript_console (thank you). I cannot find reason or solution to activate the console and I cannot use the suggestions above in this chain to place a script.js file to the C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat\Javascripts folder due to admin rights issue; I find the corresponding folder in the C:\Users\ohaf\AppData\Roaming\Adobe\Acrobat\10.0\JavaScripts, but placing .js files there do not seem the make any difference; I have used Task manager to kill all acro* processes and do restart Acrobat; trying both reader XI and Acrobat X, but cannot activate console. Anybody, any change to do this without being able to write to the program files -folder?

    try67
    Community Expert
    Community Expert
    June 15, 2017

    Download this file and click the button in it: Show JS Console.pdf - Google Drive

    Lev_Ger
    Inspiring
    January 22, 2011

    If you are working with acrobat X, then the console is no longer in the menus, but rather on the right under the "tools" section, under "javascripts".

    x-feedAuthor
    Participant
    January 22, 2011

    Thank you for your input. I checked all the possibilities and the sad fact remains that in my Standard version only one item shows up under "Javascript" (i.e. "Define Document Actions"). My (uneducated) guess is, that there is a difference regarding the JavaScript tools between the Pro and the standard edition, since everything shows up allright on the Pro (Test) version.

    Lev_Ger
    Inspiring
    January 23, 2011

    OK, I get it. Try the following:

    Create a plain text file with the following code "console.show()", you can call it something like "open console.js".

    If you are on a Mac:

    Open up your Acrobat app by right clicking and picking "Show Package Contents", navigate to Contents/Resources/JavaScripts and put the script there.

    If you are on a PC:

    Place the above script in /Program Files/Adobe/Acrobat ?/Acrobat/JavaScripts

    Then restart your Acrobat and hopefully after start-up your console will pop open.

    Legend
    January 21, 2011

    Check the JavaScript preferences, and activate the according options. After a restart of Acrobat,

    the console should pop up... (hopefully).

    HTH.

    Max Wyss.

    x-feedAuthor
    Participant
    January 21, 2011

    Thks - I tried that before. For the time being the only way that I can access the console is by forcing an error in a script. Reparing Acrobat does not help. Deleting the preferences seems to have no influence at all.

    Inspiring
    January 21, 2011

    I have put the Debugger on the quick bar along with Edit Document Scripts.

    You need to either create a form or edit a form, Open the 'Forms' tool in the 'Tools' well, select the "More Tools" and find the tool you want added to the quick bar. I believe you can right click for the context menu to add the tool or drag and drop the tool to the quick bar.

    I have found the Ctrl + J shortcut does not always work with many versions of Acrobat. Many times this occurs when there is a JavaScript error somewhere in the code. If you have ever had to install the code for the JS console, you will see that the console object is run by JS code.