PolylineAnnotation

constructor(@IntRange(from = 0) pageIndex: Int, @NonNull points: List<PointF>)

Creates a new polyline annotation.

Parameters

pageIndex

Page to which this annotation will be attached to.

points

List of points in polyline annotation.


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

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

Parameters

pageIndex

Page to which this annotation will be attached to.

points

List of points in polyline annotation.

scale

Measurement com.pspdfkit.annotations.measurements.Scale for the annotation.

precision

Measurement MeasurementPrecision for the annotation.


constructor(@NonNull properties: AnnotationPropertyMap, markDirty: Boolean)

Intended for internal usage only.