FreeTextAnnotation

constructor(@IntRange(from = 0) pageIndex: Int, @NonNull rect: RectF, @Nullable contents: String)

Creates a new FreeText annotation.

Parameters

pageIndex

Page to which this annotation will be attached to.

rect

Bounding rectangle for this annotation's text.

contents

Text of the annotation.


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

Intended for internal usage only.