The PdfWebControlApi Class exposes the following events.
Overview
These events are raised by a PdfWebControl, and can be listened to using the PdfWebControlApi Class.
To listen to a particular event, the addEventListener Method should be used.
It is important to remember that you can only attach a listener after the PdfWebControl's OnLoad event has been called.
It is recommended to add your event listeners in a function executed by the OnClientLoad Property of a PdfWebControl.
See the addEventListener Method to see event usage in action.
Events
| Name | Argument | Description | |
|---|---|---|---|
| downloading | CancelEventArgs Class | Cancelable event raised upon downloading a document in a PdfWebControl instance. Can be canceled by returning false. | |
| objectAdded | ObjectEventArgs Class | Informational event raised upon a new object being added by the user to a document in a PdfWebControl instance. | |
| objectClick | ObjectClickEventArgs Class | Cancelable event raised upon an object being clicked by the user in a document in a PdfWebControl instance. | |
| objectSelected | ObjectEventArgs Class | Informational event raised upon an object being selected by the user in a document in a PdfWebControl instance. | |
| objectUnselected | ObjectEventArgs Class | Informational event raised upon an object being unselected by the user in a document in a PdfWebControl instance. | |
| printing | CancelEventArgs Class | Cancelable event raised upon printing a document in a PdfWebControl instance. Can be canceled by returning false. | |
| saved | (none) | Informational event raised upon the completion of a save by a PdfWebControl instance. | |
| saving | CancelEventArgs Class | Cancelable event raised upon saving a document in a PdfWebControl instance. Can be canceled by returning false. | |
| textSelected | TextSelectedEventArgs Class | Informational event raised upon the text in a document being selected in a PdfWebControl instance. | |
| viewChanged | ViewChangedEventArgs Class |
Informational event raised upon the view in a document being changed in a PdfWebControl instance.
This event is raised when the page being viewed, scroll position, form field highlighting, side panel content, or zoom level is changed. |