# StampAnnotation

Artifact: [androidx.pdf:pdf-core](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/annotation/content/StampAnnotation.kt+class:androidx.pdf.annotation.content.StampAnnotation) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
public final class StampAnnotation extends PdfAnnotation
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.pdf.annotation.content.PdfAnnotation](https://developer.android.com/reference/androidx/pdf/annotation/content/PdfAnnotation) ||
|   | ↳ | [androidx.pdf.annotation.content.StampAnnotation](https://developer.android.com/reference/androidx/pdf/annotation/content/StampAnnotation) |

*** ** * ** ***

Represents a stamp annotation in a PDF document.

Stamp annotations are used to add different types of `https://developer.android.com/reference/androidx/pdf/annotation/content/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 |
|---|
| `https://developer.android.com/reference/androidx/pdf/annotation/content/StampAnnotation#StampAnnotation(kotlin.Int,android.graphics.RectF,kotlin.collections.List)( int pageNum, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/RectF.html bounds, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/annotation/content/PdfObject> pdfObjects )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/pdf/annotation/content/StampAnnotation#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/androidx/pdf/annotation/content/StampAnnotation#getBounds()()` The bounding `https://developer.android.com/reference/android/graphics/RectF.html` of the annotation on the page, in PDF coordinates. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/annotation/content/PdfObject>` | `https://developer.android.com/reference/androidx/pdf/annotation/content/StampAnnotation#getPdfObjects()()` A list of `https://developer.android.com/reference/androidx/pdf/annotation/content/PdfObject` instances that define the visual appearance of the stamp. |
| `int` | `https://developer.android.com/reference/androidx/pdf/annotation/content/StampAnnotation#hashCode()()` |

### Inherited methods

From [androidx.pdf.annotation.content.PdfAnnotation](https://developer.android.com/reference/androidx/pdf/annotation/content/PdfAnnotation) `int` `https://developer.android.com/reference/androidx/pdf/annotation/content/PdfAnnotation#getPageNum()()`

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-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
public final @NonNull RectF getBounds()
```

The bounding `https://developer.android.com/reference/android/graphics/RectF.html` of the annotation on the page, in PDF coordinates.

### getPdfObjects

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
public final @NonNull List<@NonNull PdfObject> getPdfObjects()
```

A list of `https://developer.android.com/reference/androidx/pdf/annotation/content/PdfObject` instances that define the visual appearance of the stamp.

### hashCode

```
public int hashCode()
```