initializationException Event (WebPdfContentEditorToolJS)
In This Topic
Occurs when the visual tool initialization is failed.
Syntax
var instance; // Type: WebPdfContentEditorToolJS
instance.initializationException = function(event) { }
initializationException = function (
: object
: object
) { };
Parameters
- event
- Object that contains information about event. Object has the following properties:
- target (object): An object that raised the event.
- type (string): Event name.
- data (object): An object that contains data, which were specified when subscribing to the event.
- originalEvent (object): Original event if event was received from DOM-element.
- eventArgs
- Object that contains event arguments.
Remarks
WebPdfContentEditorToolJS fires this event in the following situations:
- Request for getting all text blocks, which are associated with specified PDF page, failed. In this case 'eventArgs' parameter will have the following parameters:
- description (string): "Get content images" string constant.
- errorMessage (string): Error message.
- page (object): An instance of WebPdfPageJS class.
- image (object): The WebImageJS object, from image viewer collection, which is associated with WebPdfPageJS object.
Browser Compatibility
See Also