Methods
-
<static> setAction(pageIndex, annotName, type, data)
-
Set an action to image annot.
Parameters:
Name Type Description pageIndexnumber specify PDF page which contains target annot.
annotNamestring annot's name.
typestring specify action's type. It should be one of 'GoTo', 'Launch' and 'URI'
datastring | Array.<string> specity action's data. If it's an 'GoTo' action,
{data} a string which specify a local file path or an URI.
Otherwise, it's an destination array,
such as [pageIndex,'XYZ', {left}, {top}, {zoom}].Returns:
- Type
- string
-
<static> setActionHandler(handler)
-
This function specifies an action handler for all image annotations.
Parameters:
Name Type Description handlerActionHandler The handler of image annotation's event.