WidgetAnnotation

Represents the appearance of a field in interactive forms. For form elements with text, the text color comes from the color property of Annotation. Use formElement to access associated FormElement.

See also

Types

Link copied to clipboard
object Companion

Constants for the WidgetAnnotation.

Properties

Link copied to clipboard
open override var borderColor: Int

Returns the border color of this annotation or Color.TRANSPARENT if no color is set. Note that alpha channel is not taken into account as per PDF specifications.

Link copied to clipboard
@get:FloatRange(from = 0.0)
var fontSize: Float

The font size of this widget annotation in PDF points. If set to FONT_SIZE_AUTO, PSPDFKit will automatically adjust the font size of the annotation, so that the content fills the bounding box.

Link copied to clipboard

Returns a form element for widget annotation.

Link copied to clipboard

Returns a form element for widget annotation, asynchronously.

Link copied to clipboard
open override val type: AnnotationType

Gets the annotation type of the annotation.

Link copied to clipboard

The vertical text alignment used by this widget annotation.

Functions

Link copied to clipboard
open override fun getAdditionalAction(triggerEvent: AnnotationTriggerEvent): Action?

Returns the action that should be executed on annotation trigger event.

Link copied to clipboard

Returns a map of additional actions keyed by their trigger events.

Link copied to clipboard
open override fun setAdditionalAction(triggerEvent: AnnotationTriggerEvent, action: Action?)

Sets the action that should be executed for the given annotation trigger event.