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

NameArgumentDescription
downloadingCancelEventArgs ClassCancelable event raised upon downloading a document in a PdfWebControl instance. Can be canceled by returning false.
objectAddedObjectEventArgs ClassInformational event raised upon a new object being added by the user to a document in a PdfWebControl instance.
objectClickObjectClickEventArgs ClassCancelable event raised upon an object being clicked by the user in a document in a PdfWebControl instance.
objectSelectedObjectEventArgs ClassInformational event raised upon an object being selected by the user in a document in a PdfWebControl instance.
objectUnselectedObjectEventArgs ClassInformational event raised upon an object being unselected by the user in a document in a PdfWebControl instance.
printingCancelEventArgs ClassCancelable 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.
savingCancelEventArgs ClassCancelable event raised upon saving a document in a PdfWebControl instance. Can be canceled by returning false.
textSelectedTextSelectedEventArgs ClassInformational event raised upon the text in a document being selected in a PdfWebControl instance.
viewChangedViewChangedEventArgs 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.

See Also

Other Resources