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

Where can I find JavaScript Sample Plugins for Adobe Acrobat?

Community Beginner ,
Apr 25, 2022 Apr 25, 2022

I studied the following documentation:

 

After downloading Adobe SDK from https://developer.adobe.com/console/ I can only find samples for C++ code not for JavaScript samples.

 

Screenshot from 2022-04-25 15-49-34.png

 

The folder "/Acrobat_DC_SDK_Windows_2021_v3/Adobe/Acrobat DC SDK/Version 1/JavaScriptSupport/" only contains a PDF file.

 

Can anyone guide me, on where to find sample examples for the JavaScript add-ons?

TOPICS
Acrobat SDK and JavaScript , Windows
1.4K
Translate
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 2 Correct answers

LEGEND , Apr 25, 2022 Apr 25, 2022

Plugins for Acrobat are written in C/C++ only. There is no such thing as a JavaScript plug-in.

 

JavaScript can be run at Acrobat startup and create tools and menus, but it cannot be a plug-in. 

A plug-in can use simple JavaScript commands, but without a way to get result values, using the AFExecuteThisScript() method.

A plug-in cannot extend JavaScript, add classes etc.

 

If the documentation still seems to say there is such a thing as a JavaScript plug-in, please post a detailed reference/quote so w

...
Translate
Community Expert , Apr 25, 2022 Apr 25, 2022

The folder "/Acrobat_DC_SDK_Windows_2021_v3/Adobe/Acrobat DC SDK/Version 1/JavaScriptSupport/" only contains a PDF file.

 

Open the PDF file in Adobe Acrobat and you will see the samples.

 

Translate
LEGEND ,
Apr 25, 2022 Apr 25, 2022

Plugins for Acrobat are written in C/C++ only. There is no such thing as a JavaScript plug-in.

 

JavaScript can be run at Acrobat startup and create tools and menus, but it cannot be a plug-in. 

A plug-in can use simple JavaScript commands, but without a way to get result values, using the AFExecuteThisScript() method.

A plug-in cannot extend JavaScript, add classes etc.

 

If the documentation still seems to say there is such a thing as a JavaScript plug-in, please post a detailed reference/quote so we can help to clarify.

Translate
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 Beginner ,
Apr 25, 2022 Apr 25, 2022

Thanks for the reply. Can you guide me on where can I find Javascript samples as mentioned in the link https://opensource.adobe.com/dc-acrobat-sdk-docs/library/samples/Samples_JavaScript.html

Translate
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 ,
Apr 25, 2022 Apr 25, 2022

The folder "/Acrobat_DC_SDK_Windows_2021_v3/Adobe/Acrobat DC SDK/Version 1/JavaScriptSupport/" only contains a PDF file.

 

Open the PDF file in Adobe Acrobat and you will see the samples.

 

Translate
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 ,
Sep 10, 2025 Sep 10, 2025

Hi were you able to find something? 
Can we use Adobe JS for building plugins for acrobat?

Translate
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 ,
Sep 10, 2025 Sep 10, 2025
LATEST

The answer is Yes and No.

There is a lot that can be done with a JavaScript folder level automation script, which is called an Add-in. To a user, Add-ins can be almost indistinguishable from a plug-in, but there are not the same as a true Acrobat Plug-in You can read more about it here. 

https://www.pdfscripting.com/public/Automating-Acrobat.cfm

 

 

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

Translate
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