[]
DsPdfJS API / WidgetProperties
WidgetProperties =
AnnotationBaseProperties&object
Defines properties of a WidgetAnnotation.
optionalactivate:ActionBase|ActionProperties
An action to be performed when the annotation is activated.
optionalannotationPageClosed:ActionBase|ActionProperties
An action to be performed when the page containing the annotation is closed (for example, when the user navigates to the next or previous page, or follows a link annotation or outline item).
optionalannotationPageHide:ActionBase|ActionProperties
An action to be performed when the page containing the annotation is no longer visible in the viewer application's user interface.
optionalannotationPageOpened:ActionBase|ActionProperties
An action to be performed when the page containing the annotation is opened (for example, when the user navigates to it from the next or previous page or by means of a link annotation or outline item).
optionalannotationPageShow:ActionBase|ActionProperties
An action to be performed when the page containing the annotation becomes visible in the viewer application's user interface.
optionalbackColor:Color
The annotation's background color.
optionalborder:BorderProperties
The BorderProperties object defining annotation's border.
optionalbuttonAppearance:ButtonAppearanceProperties
The ButtonAppearanceProperties object that specifies the look of the widget if it is linked with a push button field.
optionalcheckStyle:CheckStyle
The style of check mark that is used if a WidgetAnnotation is linked with a CheckBoxField or a RadioButtonField.
Note that this property works over the 'buttonAppearance.Caption' property, for example if 'checkStyle' is "Cross", then 'buttonAppearance.caption' will be "8".
If the value of this property is null, it indicates that ButtonAppearance.Caption contains an unknown value.
optionaldefaultAppearance:DefaultAppearanceProperties|string
The apperance that specifies the visual properties (font, font size etc.) used to format the content of the annotation. The apperance can be specified as DefaultAppearanceProperties with set of properties like font, fontSize, foreColor or as a string as it will be stored in a PDF stream: "/DF0 10 Tf 0 0 0 rg".
optionalenter:ActionBase|ActionProperties
An action to be performed when the annotation receives the input focus.
optionalhighlighting:HighlightingMode
The annotation's highlighting mode.
optionaljustification:VariableTextJustification
The justification to be used in displaying the annotation's text. Note that if this property is not specified (the value is null) then Field#justification is used. See PDF specification for details.
optionalleave:ActionBase|ActionProperties
An action to be performed when the annotation loses the input focus.
optionalmouseDown:ActionBase|ActionProperties
An action to be performed when the mouse button is pressed inside the field's active area.
optionalmouseEnter:ActionBase|ActionProperties
An action to be performed when the mouse enters the field's active area.
optionalmouseLeave:ActionBase|ActionProperties
An action to be performed when the cursor exits the field's active area.
optionalmouseUp:ActionBase|ActionProperties
An action to be performed when the mouse button is released inside the field's active area.
optionalname:string
The name of the annotation. If WidgetAnnotation is used with RadioButtonField then 'name' is used as a value.
optionalrotationAngle:number
The angle, in degrees, by which the widget annotation is rotated counterclockwise relative to the page. The value must be a multiple of 90.