PdfWidgetActions

data class PdfWidgetActions(val mouseEnter: PdfAction? = null, val mouseExit: PdfAction? = null, val mouseDown: PdfAction? = null, val mouseUp: PdfAction? = null, val focus: PdfAction? = null, val blur: PdfAction? = null, val pageOpen: PdfAction? = null, val pageClose: PdfAction? = null, val pageVisible: PdfAction? = null, val pageInvisible: PdfAction? = null, val keystroke: PdfAction? = null, val format: PdfAction? = null, val validate: PdfAction? = null, val calculate: PdfAction? = null, val raw: PdfDictionary)

The scripts an annotation runs when the reader touches it, from its /AA dictionary (ISO 32000-1 §12.6.3, Table 194 and Table 196).

An interactive PDF puts its behaviour here: a text field filters what is typed with keystroke, a button runs mouseDown when it is pressed, and a total is recomputed by the calculate script of the field that shows it. Each entry is a parsed PdfAction, usually PdfAction.JavaScript, and null when the document does not define that trigger.

The four form triggers (keystroke, format, validate, calculate) only have meaning on a widget of a form field. The six mouse and focus triggers apply to any annotation.

Constructors

Link copied to clipboard
constructor(mouseEnter: PdfAction? = null, mouseExit: PdfAction? = null, mouseDown: PdfAction? = null, mouseUp: PdfAction? = null, focus: PdfAction? = null, blur: PdfAction? = null, pageOpen: PdfAction? = null, pageClose: PdfAction? = null, pageVisible: PdfAction? = null, pageInvisible: PdfAction? = null, keystroke: PdfAction? = null, format: PdfAction? = null, validate: PdfAction? = null, calculate: PdfAction? = null, raw: PdfDictionary)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

/Bl: the annotation loses the input focus.

Link copied to clipboard

/C: the field recomputes its value, in the order of the form's /CO array.

Link copied to clipboard

/Fo: the annotation receives the input focus.

Link copied to clipboard

/F: the field's value is about to be shown, so the script may format it.

Link copied to clipboard

True when the dictionary defined no trigger this type knows.

Link copied to clipboard

/K: the reader types into the field, and once more when the value is committed.

Link copied to clipboard

/D: the pointer button goes down inside the annotation.

Link copied to clipboard

/E: the pointer enters the annotation's area.

Link copied to clipboard

/X: the pointer leaves the annotation's area.

Link copied to clipboard

/U: the pointer button is released inside the annotation.

Link copied to clipboard

/PC: the page holding the annotation is closed.

Link copied to clipboard

/PI: the page holding the annotation is no longer visible.

Link copied to clipboard

/PO: the page holding the annotation is opened.

Link copied to clipboard

/PV: the page holding the annotation becomes visible.

Link copied to clipboard

The raw /AA dictionary, for triggers this type does not model.

Link copied to clipboard

/V: the field's value changed and the script accepts or rejects it.