• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Where to store .js files for Adobe Acrobat Pro DC

New Here ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

 

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

TOPICS
Acrobat SDK and JavaScript

Views

4.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 26, 2019 Dec 26, 2019

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

Votes

Translate

Translate
Community Expert ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

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

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

 

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

 

That's true but I have no privillage to copy to the app folder and I have to make it to many user in the company. So, I must use the user folder but I'm facing the above issue. How can I please solve this?

 

Best regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

Thank you Bernd. That's solved the issue.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 03, 2020 Jul 03, 2020

Copy link to clipboard

Copied

Unfortunately, I cannot find this file location for adobe acrobat pro in windows 10.
the "Privileged" folder does not exist for me. Can you please help me on this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 03, 2020 Jul 03, 2020

Copy link to clipboard

Copied

Then you should create it manaully. Or you could use this path, which should exist:

C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Javascripts

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 03, 2020 Jul 03, 2020

Copy link to clipboard

Copied

LATEST

Read the Article linked below. It explains all.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 26, 2019 Dec 26, 2019

Copy link to clipboard

Copied

Read this article:

https://www.pdfscripting.com/public/Installing_Automation_Tools.cfm

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines