Skip to main content
Participant
Sep 13, 2024 7:33 AM UTC
Question

Programmatically enabling a button to click itself when PDF is opened

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

JR Boulay
Community Expert
Community Expert
Sep 13, 2024 2:23 PM UTC

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

Translate
Acrobate du PDF, InDesigner et Photoshopographe
Bernd Alheit
Community Expert
Community Expert
Sep 13, 2024 1:48 PM UTC

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

Translate
kglad
Community Expert
Community Expert
Sep 13, 2024 1:25 PM UTC

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">
Translate