Skip to main content
Participant
Apr 25, 2022 10:55 AM UTC
Answered

Where can I find JavaScript Sample Plugins for Adobe Acrobat?

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.

 

 

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?

Bernd Alheit
Bernd AlheitCorrect answer
Community Expert
Apr 25, 2022 12:35 PM UTC

> 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.

 

5 replies

Known Participant
Sep 10, 2025 12:25 PM UTC

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

Translate
Thom Parker
Community Expert
Community Expert
Sep 10, 2025 5:59 PM UTC

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 they 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

 

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
Apr 25, 2022 12:35 PM UTC

> 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 12:04 PM UTC

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
Participant
Apr 25, 2022 12:11 PM UTC

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