DocumentViewer raises several client-side events:
- Loaded - raised when the viewer has been loaded.
- Failed - raised when an error occurs.
- DocumentLoaded - raised when a document has been loaded.
- PageChanged - raised when viewed page is changed.
- PageRendered - raised when a page had finished rendering.
- RotationChanged - raised when page rotation is changed.
- Downloading - raised before user downloads the original document or PDF version.
- Printing - raised before user prints the document.
- Printed - raised when printing is completed.
- TextSelected - raised when user selects text in the document.
- TextCopied - raised when user copies the selected text in the document.
The value of an event property should be a valid JavaScript function name which is accessible on the host page.
Function names should be specified without parentheses like "FunctionName" or "Namespace.FunctionName".