InkAnnotation

Represents a freehand drawing on the page.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0) pageIndex: Int)
Creates a new ink annotation.
constructor(@NonNull properties: AnnotationPropertyMap, markDirty: Boolean)
Intended for internal usage only.

Functions

Link copied to clipboard
Returns list of lines of this Ink annotation represents.
Link copied to clipboard
open fun getLineWidth(): Float
Gets ink line width/thickness.
Link copied to clipboard
Gets the annotation type of the annotation.
Link copied to clipboard
open fun isResizable(): Boolean
Check if the annotation is resizable, or if this is a non-resizable annotation.
Link copied to clipboard
open fun setIsSignature(isSignature: Boolean)
Sets whether this annotation is an electronic signature annotation.
Link copied to clipboard
open fun setLines(@NonNull lines: List<List<PointF>>)
Sets and overwrites existing list of lines for this ink annotation.
Link copied to clipboard
open fun setLineWidth(@FloatRange(from = 0.0) lineWidth: Float)
Sets ink line width/thickness.
Link copied to clipboard
open fun updateTransformationProperties(@NonNull newBoundingBox: RectF, @NonNull oldBoundingBox: RectF)
Annotations may override this method to transform their properties (i.e.