StampAnnotation


public final class StampAnnotation extends PdfAnnotation


Represents a stamp annotation in a PDF document.

Stamp annotations are used to add different types of PdfObject. This class encapsulates the properties of a stamp annotation, such as its page number, bounding box, and the list of PDF objects that constitute the stamp's appearance.

Summary

Public constructors

StampAnnotation(
    int pageNum,
    @NonNull RectF bounds,
    @NonNull List<@NonNull PdfObject> pdfObjects
)

Public methods

boolean
equals(Object other)
final @NonNull RectF

The bounding RectF of the annotation on the page, in PDF coordinates.

final @NonNull List<@NonNull PdfObject>

A list of PdfObject instances that define the visual appearance of the stamp.

int

Inherited methods

From androidx.pdf.annotation.content.PdfAnnotation
int

The page number (0-indexed) where this annotation is located.

Public constructors

StampAnnotation

public StampAnnotation(
    int pageNum,
    @NonNull RectF bounds,
    @NonNull List<@NonNull PdfObject> pdfObjects
)

Public methods

equals

public boolean equals(Object other)

getBounds

Added in 1.0.0-alpha19
public final @NonNull RectF getBounds()

The bounding RectF of the annotation on the page, in PDF coordinates.

getPdfObjects

Added in 1.0.0-alpha19
public final @NonNull List<@NonNull PdfObjectgetPdfObjects()

A list of PdfObject instances that define the visual appearance of the stamp.

hashCode

public int hashCode()