Copy link to clipboard
Copied
Generate a pdf using acrobat sdk javascript which does the following things:
The biggest challenge I am facing is:
I am unable to find a way to click a button on load of the document without any user interaction
Action: Click a button
(Can't find the button in the doc let's say using button id or button name)
Trigger: On document load
Any help/ideas are appreciated, thanks!
Copy link to clipboard
Copied
You don’t need to click the button on document load – you can simply execute the Submit action on document load.
Copy link to clipboard
Copied
How to assign an action on document onload? I can't find the option to execute an action on document on load.
Copy link to clipboard
Copied
Create document level JavaScript. That is executed on load. Mostly it defines functions, but code outside a function is executed at that time.
Copy link to clipboard
Copied
I have attempted to do this, it fails while opening in acrobat reader. If it's now too much trouble can you give an example (code snippet) ?
Copy link to clipboard
Copied
A quick web search turned up a nice page about document level (document opening) scripting from our friends at PDFScripting.com
https://www.pdfscripting.com/public/Basic-Document-Level-Scripts.cfm
Copy link to clipboard
Copied
Can you tell me how? An example would be appreciated