Skip to main content
Inspiring
June 12, 2016
Answered

Stimulating key press with javascript under a button in pdf

  • June 12, 2016
  • 2 replies
  • 805 views

Hi All,

Can it be possible to stimulate key press using acrobat 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

This topic has been closed for replies.
Correct answer try67

No, it's not possible.

2 replies

Inspiring
June 12, 2016

Acrobat and Reader are very well isolated from the OS so that rouge code within JavaScript cannot access the OS. This is called "sandboed", just like a child's sandbox does not change the real world.

If you need this, then you will have to create an executable add-in that each user must manually install and accept the risk of the code or program being malicious. You will need a complied computer language and the Acrobat SDK to write the code and register with Adobe to distribute such code.

Inspiring
June 13, 2016

Thank for this explanation sir.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 12, 2016

No, it's not possible.

Inspiring
June 12, 2016

Thank you Gilad for you immediate reply. I believe you are right but still wanted to confirm from an expert.

Regards

Arvind