Click or drag to resize

PdfWebControlApi Events

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.
modeChangedModeChangedEventArgs ClassInformational event raised upon the mode being changed in a PdfWebControl instance.
objectAddedObjectAddedEventArgs ClassInformational event raised upon a new object being added by the user to a document in a PdfWebControl instance.
objectChangeObjectEventArgs ClassInformational event raised upon an object's check state, text, value, etc. being changed by the user in 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.
objectDeletedObjectEventArgs ClassInformational event raised after an object was deleted by the user in a document in a PdfWebControl instance.
objectDeletingObjectClickEventArgs ClassCancelable event raised as an object is being deleted by the user in a document in a PdfWebControl instance.
objectKeypressObjectKeypressEventArgs ClassCancelable event raised upon an object in text edit mode being typed into by the user in a document in a PdfWebControl instance.
objectMovedObjectEventArgs ClassInformational event raised upon an object being moved by the user in a document in a PdfWebControl instance.
objectResizedObjectEventArgs ClassInformational event raised upon an object being resized 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.
objectStyledObjectEventArgs ClassInformational event raised upon an object's style (color, font, etc.) being changed 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