LineAnnotation

constructor(@IntRange(from = 0) pageIndex: Int, @NonNull point1: PointF, @NonNull point2: PointF)

Creates a new line annotation.

Parameters

pageIndex

Page to which this annotation will be attached to.

point1

Starting point of the line in PDF coordinates.

point2

End point of the line in PDF coordinates.


constructor(@IntRange(from = 0) pageIndex: Int, @NonNull point1: PointF, @NonNull point2: PointF, @NonNull scale: Scale, @NonNull precision: MeasurementPrecision)

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

Parameters

pageIndex

Page to which this annotation will be attached to.

point1

Starting point of the line in PDF coordinates.

point2

End point of the line in PDF coordinates.

scale

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

precision

Measurement MeasurementPrecision for the annotation.


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

Intended for internal usage only.