PolygonAnnotation

Represents a closed polygon on a page.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0) pageIndex: Int, points: @JvmSuppressWildcards List<PointF>)

Creates a new polygon annotation.

constructor(@IntRange(from = 0) pageIndex: Int, points: @JvmSuppressWildcards List<PointF>, scale: Scale, precision: MeasurementPrecision)

Creates a measurement rectangular area annotation. Will throw an exception if Measurement Tools are not licensed.

Properties

Link copied to clipboard
open override var borderStyle: BorderStyle

Returns the current border style on the annotation or BorderStyle.NONE if none is set.

Link copied to clipboard

Returns polygon points in PDF coordinates.

Link copied to clipboard
open override val type: AnnotationType

Gets the annotation type of the annotation.

Functions

Link copied to clipboard
open override fun getCopy(): PolygonAnnotation

Gets a copy of this annotation with the page index and object number reset.

Link copied to clipboard
open override fun setPoints(points: @JvmSuppressWildcards List<PointF>)

Sets polygon points in PDF coordinates.