Copy link to clipboard
Copied
I run Acrobat DC on three different platforms: (1) a Mac, (2) under Windows 10 running through Parallels on a Mac, and (3) a PC with Windows 11. In the Javascripts folder on the Windows 11 PC there is no Config.js file, but there is a Config.js file in the Javascripts folder on both the Mac and Windows 10 / Parallels systems. Is Config.js needed with Acrobat on Windows 11 system? I ran "Repair installation" but it did not provide a Config.js file.
Copy link to clipboard
Copied
Hi @ODuinn ,
I've been active in these support forums since 2019, and I can never get enough of Acrobat JavaScript.
That is a great question.
I still consider myself very new to Acrobat JavaScript. However, if I am not mistaken (and in reference to what I've read about the "Config.js" file), Acrobat users have had to manually create the Config.js file to extend the capabilities of Adobe Acrobat with folder-level scripting workflows.
For instance, see this old article from ACP @Thom Parker that dates back to year 2006:
See this additional discussion:
As opposed to older versions of Microsoft Windows (and most recently with Windows 11), I am not sure why is it that on Microsoft Windows 10 and Apple's macOS this file is created automatically.
But it is worth noting that on Windows 11 you may manually create a blank file of Config.js using Microsoft's Notepad and place it in the existing global variable folder:
- C:\Program Files\Adobe\Acrobat DC\Acrobat\Javscript
In addition, it does looks like the User variable folder is non existent on Windows 11.
It may be possible that it is not needed (as you've observed).
But for testing purposes you may manually add the "Javascripts" folder to the directory path listed below (for Windows 11) and place the Config.js file in there:
- C:\Users\"your current UserAccount"\AppData\Local\Adobe\Acrobat\DC\Javascript
You may test if this works using the examples of Thom Parker's article.
Copy link to clipboard
Copied
Hi @ODuinn ,
I've been active in these support forums since 2019, and I can never get enough of Acrobat JavaScript.
That is a great question.
I still consider myself very new to Acrobat JavaScript. However, if I am not mistaken (and in reference to what I've read about the "Config.js" file), Acrobat users have had to manually create the Config.js file to extend the capabilities of Adobe Acrobat with folder-level scripting workflows.
For instance, see this old article from ACP @Thom Parker that dates back to year 2006:
See this additional discussion:
As opposed to older versions of Microsoft Windows (and most recently with Windows 11), I am not sure why is it that on Microsoft Windows 10 and Apple's macOS this file is created automatically.
But it is worth noting that on Windows 11 you may manually create a blank file of Config.js using Microsoft's Notepad and place it in the existing global variable folder:
- C:\Program Files\Adobe\Acrobat DC\Acrobat\Javscript
In addition, it does looks like the User variable folder is non existent on Windows 11.
It may be possible that it is not needed (as you've observed).
But for testing purposes you may manually add the "Javascripts" folder to the directory path listed below (for Windows 11) and place the Config.js file in there:
- C:\Users\"your current UserAccount"\AppData\Local\Adobe\Acrobat\DC\Javascript
You may test if this works using the examples of Thom Parker's article.
Copy link to clipboard
Copied
I take it that by "User variable folder" in Windows 11 you mean the Javascripts folder, which exists on my Windows 11 system at C:\Program Files\Adobe\Acrobat DC\Acrobat\Javascripts. The debugger.js and JSByteCodeWin.bin files do exist in that folder, so only config.js is missing. I have added my own folder level scripts and although most of my scripts seem to be working, there are a couple that are not working on the PC but do work on my Mac. I need to analyze why that is.
I will check out Thom's article and the others you mention and reply again. Thank you.
Copy link to clipboard
Copied
After reviewing your linked articles, clearly a config.js file is in the program's Javascripts folder is optional.
Copy link to clipboard
Copied
What are the contents of these "Config.js" files on both the Mac and Win10? I'm pretty sure that those files must have been placed there manually after Acrobat was installed.
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
I am embarrassed to admit that before posting the question I didn't open the config.js files (I didn't want to inadvertently modify what I thought was a system js file). However, in the course of this discussion I opened both and found that they are scripts that I wrote several years ago - and had forgotten about - adding menus items, and remembered that back then I read your article (the same one that ls_rbls linked in this discussion) and created the config.js files. I am sorry if this has wasted the time of others. Hopefully it's helpful in some way to someone.
Copy link to clipboard
Copied
No worries 🙂 We've been at this now for a couple of decades. You're allowed to forget about scripts over 10 years old 😉
Use the Acrobat JavaScript Reference early and often

