# 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)

*** ** * ** ***


```
class StampAnnotation : PdfAnnotation
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.pdf.annotation.content.PdfAnnotation](https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PdfAnnotation) ||
|   | ↳ | [androidx.pdf.annotation.content.StampAnnotation](https://developer.android.com/reference/kotlin/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/kotlin/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/kotlin/androidx/pdf/annotation/content/StampAnnotation#StampAnnotation(kotlin.Int,android.graphics.RectF,kotlin.collections.List)(pageNum: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bounds: https://developer.android.com/reference/android/graphics/RectF.html, pdfObjects: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PdfObject>)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/StampAnnotation#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/StampAnnotation#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/StampAnnotation#bounds()` The bounding `https://developer.android.com/reference/android/graphics/RectF.html` of the annotation on the page, in PDF coordinates. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PdfObject>` | `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/StampAnnotation#pdfObjects()` A list of `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PdfObject` instances that define the visual appearance of the stamp. |

### Inherited properties

From [androidx.pdf.annotation.content.PdfAnnotation](https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PdfAnnotation) `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/PdfAnnotation#pageNum()`

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

## Public constructors

### StampAnnotation

```
StampAnnotation(pageNum: Int, bounds: RectF, pdfObjects: List<PdfObject>)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### bounds

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

```
val bounds: RectF
```

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

### pdfObjects

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

```
val pdfObjects: List<PdfObject>
```

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