Namespace: ImageAnnotPlugin

WebPDF. ImageAnnotPlugin

Methods


<static> setAction(pageIndex, annotName, type, data)

Set an action to image annot.

Parameters:
Name Type Description
pageIndex number

specify PDF page which contains target annot.

annotName string

annot's name.

type string

specify action's type. It should be one of 'GoTo', 'Launch' and 'URI'

data string | 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
handler ActionHandler

The handler of image annotation's event.