Skip to main content
Participant
September 13, 2024
Question

Programmatically enabling a button to click itself when PDF is opened

  • September 13, 2024
  • 3 replies
  • 629 views

I have written JavaScript code for a button with a "Mouse Up" trigger and "Run a JavaScript" action.

This button performs the required actions after clicking on it. 

I want to write another code which programatically enables this click action every time the PDF is opened without clicking on the button with my mouse.

How do I do this? Any ideas?

 

This topic has been closed for replies.

3 replies

JR Boulay
Community Expert
Community Expert
September 13, 2024

You must use a "Document level script", see: https://www.pdfscripting.com/public/Document-Level-Scripts.cfm

Acrobate du PDF, InDesigner et Photoshopographe
Bernd Alheit
Community Expert
Community Expert
September 13, 2024

May be that you can use the script at document open.

kglad
Community Expert
Community Expert
September 13, 2024

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



<"moved from using the community">