toInkAnnotation

fun toInkAnnotation(document: PdfDocument, @IntRange(from = 0) pageIndex: Int, 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.


fun toInkAnnotation(document: PdfDocument, @IntRange(from = 0) pageIndex: Int, 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.


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.