StampAnnotation

constructor(@IntRange(from = 0) pageIndex: Int, @NonNull rect: RectF, @NonNull compressedBitmap: Array<Byte>)

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, @NonNull rect: RectF, @NonNull 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, @NonNull rect: RectF, @Nullable 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, @NonNull rect: RectF, @NonNull 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.

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.


constructor(@NonNull properties: AnnotationPropertyManager, markDirty: Boolean, @Nullable imageResourceId: String)
constructor(@NonNull properties: AnnotationPropertyManager, markDirty: Boolean, @Nullable bitmap: Bitmap)

Intended for internal usage only