Signature

Represents a single signature (or signature item). To create an Annotation from this signature use the toAnnotation methods. Helper methods to create Ink or Stamp Signatures are here: createStampSignature, createInkSignature.

Types

Link copied to clipboard
object Companion : Parceler<Signature>

Properties

Link copied to clipboard

BiometricSignatureData that was collected with this signature. May return null if no biometric data was created.

Link copied to clipboard

When creating a stamp signature (as opposed to ink signature), you need to provide a bitmap.

Link copied to clipboard
Link copied to clipboard

The ratio of signature width to width of the drawing view used when drawing the signature.

Link copied to clipboard
val id: Long

Signature id number used in signature database. If not set, the default value is ID_NOT_SET.

Link copied to clipboard

Colour of the ink signature

Link copied to clipboard

List of ink lines in pdf points.

Link copied to clipboard

Signature line width in pdf points.

Link copied to clipboard

Bounding rectangle for this signature's bitmap.

Functions

Link copied to clipboard
fun toAnnotation(@IntRange(from = 0) pageIndex: Int): Annotation

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

fun toAnnotation(document: PdfDocument, @IntRange(from = 0) pageIndex: Int, touchPoint: PointF): Annotation
fun toAnnotation(document: PdfDocument, @IntRange(from = 0) pageIndex: Int, targetRect: RectF): Annotation

Builds InkAnnotation or StampAnnotation from signature data.

Link copied to clipboard

Converts a signature into a JSON object. You can use that JSON object to recreate the signature later on via fromJson.

Link copied to clipboard
open override fun Signature.write(parcel: Parcel, flags: Int)