StampAnnotation

constructor(@IntRange(from = 0) pageIndex: Int, rect: RectF, compressedBitmap: ByteArray)

Creates a new stamp annotation with the passed bitmap as contents.

Parameters

pageIndex

Page to which this annotation will be attached to.

rect

Bounding rectangle for this annotations image.

compressedBitmap

JPEG compressed bitmap data to be stored into the annotation.


constructor(@IntRange(from = 0) pageIndex: Int, rect: RectF, bitmap: Bitmap)

Creates a new stamp annotation with the passed bitmap as contents.

Parameters

pageIndex

Page to which this annotation will be attached to.

rect

Bounding rectangle for this annotations image.

bitmap

Bitmap to be stored into the annotation.


constructor(@IntRange(from = 0) pageIndex: Int, rect: RectF, stampType: StampType?)

Creates a new standard stamp annotation.

Parameters

pageIndex

Page to which this annotation will be attached to.

rect

Bounding rectangle for this annotations image.

stampType

Stamp type to display.


constructor(@IntRange(from = 0) pageIndex: Int, rect: RectF, title: String)

Creates a new stamp with custom title.

Note: Starting with PSPDFKit 5.0 the subject will no longer influence the appearance of the stamp annotation. The title is used instead. To create a standard stamp use StampAnnotation with a StampType parameter.

Parameters

pageIndex

Page to which this annotation will be attached to.

rect

Bounding rectangle for this annotations image.

title

Title to display on the stamp.