Type Definitions
-
ActionHandler(action)
-
Action handler of image annotation's event. This action handler is always be trigged automatically after an image annotation clicked by user;
Parameters:
Name Type Description actionobject The action object may like these templates below:
The template for page navigation action object:
{ "D": [ 0, // page index. "XYZ", // display mode. "XYZ" for normal display. "Fit" for fitting page. "FitH" for fitting width. 0, // needed for "XYZ" and "FitH" mode. Horizontal coordinate top for "XYZ", and vertical coordinate top for "FitH" 792, // needed for "XYZ" mode. Vertical coordinate top for "FitH"; 1 // needed for "XYZ" mode. Scale of page. ], "S": "GoTo" // }The template for file launching action object:
{ "F": "C:/Users/Public/sample.txt", // Full path of the file "S": "Launch" // The name of launch file action }The template for URI opening action object:
{ "URI": "http://localhost:28778/", // target url "S": "URI" // The name of URI opening action }