Skip to main content
Known Participant
Jan 29, 2023 5:00 PM UTC
Answered

Adobe javascript format

Hi,

I would like to know how to create a javascript format file which I can save to my Acrobat javascript directory so that I can easily use that option for any pdf with one click. 
I tried it by pasting the script to notpad++ and saving the file as javascript format. When I moved that file inside installed acrobat javascript folder, I cannot able to see any option in my add on section in Acrobat. 

 

 

Thanks in advance for help. 

This topic is closed to new replies. Start a new post to keep the conversation going.
Thom Parker
Thom ParkerCorrect answer
Community Expert
Jan 29, 2023 7:09 PM UTC

No. I don't know about addToolButton. I created it from notpad 


Read this (and watch the video):

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

 

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

8 replies

try67
Community Expert
Community Expert
Jan 29, 2023 5:22 PM UTC

What do you mean by "javascript format file", exactly?

Translate
BhuweshAuthor
Known Participant
Jan 29, 2023 5:48 PM UTC

 I want to create a javascript format file like this with the script. So that I can save it in directory and it will appear as add on in pdf. 

Translate
try67
Community Expert
Community Expert
Jan 29, 2023 5:58 PM UTC

You need to create a .js file with the addToolButton method of the app object and place it in the application's (or user's) Javascripts folder to achieve that. Is that what you did?

Translate