PdfWebControlApi Events |
The PdfWebControlApi Class exposes the following events.
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.
Name | Argument | Description | |
---|---|---|---|
downloading | CancelEventArgs Class | Cancelable event raised upon downloading a document in a PdfWebControl instance. Can be canceled by returning false. | |
modeChanged | ModeChangedEventArgs Class | Informational event raised upon the mode being changed in a PdfWebControl instance. | |
objectAdded | ObjectAddedEventArgs Class | Informational event raised upon a new object being added by the user to a document in a PdfWebControl instance. | |
objectChange | ObjectEventArgs Class | Informational event raised upon an object's check state, text, value, etc. being changed by the user in 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. | |
objectDeleted | ObjectEventArgs Class | Informational event raised after an object was deleted by the user in a document in a PdfWebControl instance. | |
objectDeleting | ObjectClickEventArgs Class | Cancelable event raised as an object is being deleted by the user in a document in a PdfWebControl instance. | |
objectKeypress | ObjectKeypressEventArgs Class | Cancelable event raised upon an object in text edit mode being typed into by the user in a document in a PdfWebControl instance. | |
objectMoved | ObjectEventArgs Class | Informational event raised upon an object being moved by the user in a document in a PdfWebControl instance. | |
objectResized | ObjectEventArgs Class | Informational event raised upon an object being resized 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. | |
objectStyled | ObjectEventArgs Class | Informational event raised upon an object's style (color, font, etc.) being changed 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. |