In this demo you can learn how to set an action to be executed when the PDF document is opened. There are 4 possible types of actions: execute a JavaScript, go to a location in PDF, submit PDF document form and reset PDF document form.

In this demo only the JavaScript and GoTo actions are exemplified. The JavaScript action is used to display an alert message when the document is opened. The GoTo Action is used to initially display a given page of the PDF document when the document is opened.
Alert Message:
Initially Displayed Page:
Set Initial Zoom Level:
%