Skip to main content
Participant
Dec 26, 2019 11:30 AM UTC
Answered

Where to store .js files for Adobe Acrobat Pro DC

 

Dear All, 

I bought and installed recently Adobe Acrobat Pro DC version 2019.021.20061 and it's working fine. I still need please to store .js files for my won functions but I could not help finding where to store them? In the Pro version, I used to store the .js files under C:\Users\{your username}\AppData\Roaming\Adobe\Acrobat\10.0\JavaScripts .

 

Best regards

This topic is closed to new replies. Start a new post to keep the conversation going.
Bernd Alheit
Bernd AlheitCorrect answer
Community Expert
Dec 26, 2019 2:14 PM UTC

The path is:
/C/Users/<user>/AppData/Roaming/Adobe/Acrobat/Privileged/DC/JavaScripts

10 replies

Thom Parker
Community Expert
Community Expert
Dec 27, 2019 1:06 AM UTC
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
Dec 26, 2019 2:14 PM UTC

The path is:
/C/Users/<user>/AppData/Roaming/Adobe/Acrobat/Privileged/DC/JavaScripts

Translate
Participant
Dec 26, 2019 2:44 PM UTC

Thank you Bernd. That's solved the issue.

Translate
try67
Community Expert
Community Expert
Dec 26, 2019 11:41 AM UTC

Open Acrobat, open the Console window (Ctrl+J), enter the following code and press Ctrl+Enter:

app.getPath("user", "javascript");

Translate
Participant
Dec 26, 2019 1:28 PM UTC

 

Thank you for the reply.

 

I tried so and I got :

app.getPath("user", "javascript");
GeneralError: Operation failed.
App.getPath:1:Console undefined:Exec
2

undefined

 

I tested if the issue in getPath function but it was not as I run the following command and it retuned a value:

app.getPath("app", "javascript");

/C/Program Files (x86)/Adobe/Acrobat DC/Acrobat/JavaScripts

 

I think I should create the javascrip folder fisrt but where should I?

 

Best regards

Translate
try67
Community Expert
Community Expert
Dec 26, 2019 2:01 PM UTC

Then use the app folder. If it doesn't exist you can create it manually.

That's what I recommend my customers to do, too.

Translate