Line Annotation
Creates a new line annotation.
Parameters
page Index
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
page Index
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.
Intended for internal usage only.