Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
What do you mean by "javascript format file", exactly?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
No. I don't know about addToolButton. I created it from notpad
Copy link to clipboard
Copied
Read this (and watch the video):
https://www.pdfscripting.com/public/Automating-Acrobat.cfm
Copy link to clipboard
Copied
Can you share a tutorial video or link where I can learn how to design custom tools?
Thanks!
Copy link to clipboard
Copied
Already done, but if you want I'll share it again. This link is a tutorial https://www.pdfscripting.com/public/Automating-Acrobat.cfm and has a video.
Copy link to clipboard
Copied
You'll find a little bit more on it here:
https://www.pdfscripting.com/public/Alerts-Popups-and-Other-UI.cfm#JSToolBut
and here's the reference entry (it includes an example):
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#addtoolbutton
You can also download one of these free tools and look at the code:
https://www.pdfscripting.com/public/Free_Acrobat_Automation_Tools.cfm