Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Stimulating key press with javascript under a button in pdf

Avatar

Level 3

Hi All,

Can it be possible to stimulate key press using acrobat javascript  or livecycle javascript @under a button?

For ex. I click a button and that work as Atl + F ( file menu ) or win + R ( run dialog) on windows.

Hope this is clear.

Thanks

Arvind

1 Accepted Solution

Avatar

Correct answer by
Level 7

LiveCycle Designer uses the same JavaScript engine that Acrobat and Reader does when the LiveCycle form is in the PDF format. So as noted in the Acrobat JavaScript form, the JavaScript engine and capabilities. As explained in the Acrobat JavaScript forum, the JavaScript used in Acrobat or Reader is "sandboxed" or very will isolated from your computer's JavaScript program. This has been done to protect users of Acrobat or Reader form the possibility of running malicious code.

It might be possible if you were to write a add-on plugin using a complied computer program and the information supplied in the Acrobat SDK. Then you would need to manually install this program on your system. For others to use the code you would need to register as a developer with Adobe and have each user install the code to their system at their own risk.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 7

LiveCycle Designer uses the same JavaScript engine that Acrobat and Reader does when the LiveCycle form is in the PDF format. So as noted in the Acrobat JavaScript form, the JavaScript engine and capabilities. As explained in the Acrobat JavaScript forum, the JavaScript used in Acrobat or Reader is "sandboxed" or very will isolated from your computer's JavaScript program. This has been done to protect users of Acrobat or Reader form the possibility of running malicious code.

It might be possible if you were to write a add-on plugin using a complied computer program and the information supplied in the Acrobat SDK. Then you would need to manually install this program on your system. For others to use the code you would need to register as a developer with Adobe and have each user install the code to their system at their own risk.