toInkAnnotation

open fun toInkAnnotation(@NonNull document: PdfDocument, @IntRange(from = 0) pageIndex: Int, @NonNull touchPoint: PointF): InkAnnotation

Builds ink annotation from signature data.

Return

Ink annotation representing this signature, or null if class is not an ink signature.

Parameters

document

Target document where the annotation will be added to.

pageIndex

Target page index in document where the annotation will be added to.

touchPoint

Point where the annotation should be created.


open fun toInkAnnotation(@NonNull document: PdfDocument, @IntRange(from = 0) pageIndex: Int, @NonNull targetRect: RectF): InkAnnotation

Builds ink annotation from signature data.

Return

Ink annotation representing this signature, or null if class is not an ink signature.

Parameters

document

Target document where the annotation will be added to.

pageIndex

Target page index in document where the annotation will be added to.

targetRect

Rect on the page into which the annotation should be fitted.


open fun toInkAnnotation(@IntRange(from = 0) pageIndex: Int): InkAnnotation

Builds ink annotation from signature data. This method does not set annotation's bounding box. If you want to create a stamp annotation with bounding box around certain touch point, use toInkAnnotation instead.

Return

Ink annotation representing this signature, or null if class is not an ink signature.

Parameters

pageIndex

Target page index where the annotation will be added to.