InkAnnotation

Represents a freehand drawing on the page.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0) pageIndex: Int)

Creates a new ink annotation.

Types

Link copied to clipboard
object Companion

Constants for InkAnnotation.

Properties

Link copied to clipboard
open override val isResizable: Boolean

Check if the annotation is resizable, or if this is a non-resizable annotation.

Link copied to clipboard

List of lines this Ink annotation represents. A line is a list of connected points in PDF coordinates. An ink annotation may have several such disjoint lines of the same color.

Link copied to clipboard

Ink line width/thickness, in PDF points.

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(): InkAnnotation

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

Link copied to clipboard
fun setIsSignature(isSignature: Boolean)

Sets whether this annotation is an electronic signature annotation.

Link copied to clipboard
open override fun updateTransformationProperties(newBoundingBox: RectF, oldBoundingBox: RectF)

Annotations may override this method to transform their properties (i.e. points, rects, sizes) whenever the bounding box of the annotation changed.