PolygonAnnotation

Represents a closed polygon on a page.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0) pageIndex: Int, @NonNull points: List<PointF>)
Creates a new polygon annotation.
constructor(@IntRange(from = 0) pageIndex: Int, @NonNull points: List<PointF>, @NonNull scale: Scale, @NonNull precision: MeasurementPrecision)
Creates a measurement rectangular area annotation.
constructor(@NonNull properties: AnnotationPropertyManager, markDirty: Boolean)
Intended for internal usage only.

Functions

Link copied to clipboard
Returns the current border style on the annotation or NONE if none is set.
Link copied to clipboard
Returns polygon points in PDF coordinates.
Link copied to clipboard
Gets the annotation type of the annotation.
Link copied to clipboard
open fun setBorderStyle(@NonNull borderStyle: BorderStyle)
Sets a border style for current annotation.
Link copied to clipboard
open fun setPoints(@NonNull points: List<PointF>)
Sets polygon points in PDF coordinates.