toStampAnnotation

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

Builds stamp annotation from signature data.

Return

Stamp annotation representing this signature, or null if class is not an image 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 toStampAnnotation(@NonNull document: PdfDocument, @IntRange(from = 0) pageIndex: Int, @NonNull targetRect: RectF): StampAnnotation

Builds stamp annotation from signature data.

Return

Stamp annotation representing this signature, or null if class is not an image 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 toStampAnnotation(@IntRange(from = 0) pageIndex: Int): StampAnnotation

Builds stamp annotation from signature data. If you want to create a stamp annotation with a specific bounding box around certain touch point, use toStampAnnotation instead.

Return

Stamp annotation representing this signature, or null if class is not an image signature.

Parameters

pageIndex

Target page index where the annotation will be added to.