PolylineAnnotation

Represents a polyline on the page. Polyline is similar to PolygonAnnotation but is not closed and supports LineEndTypes.

Constructors

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

Creates a new polyline annotation.

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

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

Properties

Link copied to clipboard

Returns polyline 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(): PolylineAnnotation

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

Link copied to clipboard
open override fun getLineEnds(): Pair<LineEndType, LineEndType>

Returns current line ending styles for this polyline.

Link copied to clipboard
open override fun setLineEnds(lineEnd1: LineEndType, lineEnd2: LineEndType)

Sets line ending style for this polyline.

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

Sets polyline points in PDF coordinates.