color

var color: Int

Returns a color associated with this annotation or Color.TRANSPARENT if no color is set. Note that alpha channel is not taken into account as per PDF specifications. This is the text color for FreeTextAnnotation and WidgetAnnotation. This is the stroke color for shapes.

The annotation will only store the RGB part and discard the alpha channel set here. Annotation opacity is set via the alpha property.

Return

Color of annotation or Color.TRANSPARENT if none is set.