# PdfAnnotation

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/PdfAnnotation.kt+class:androidx.pdf.annotation.content.PdfAnnotation) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
abstract class PdfAnnotation
```

<br />

Known direct subclasses [HighlightAnnotation](https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/HighlightAnnotation), [StampAnnotation](https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/StampAnnotation)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/HighlightAnnotation` | Represents a Highlight Annotation in a PDF document. |
| `https://developer.android.com/reference/kotlin/androidx/pdf/annotation/content/StampAnnotation` | Represents a stamp annotation in a PDF document. |

*** ** * ** ***

Represents an annotation on a PDF page.

This abstract class serves as the base for different types of PDF annotations. It handles common properties and behaviors.

## Summary

| ### 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/PdfAnnotation#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/PdfAnnotation#hashCode()()` |

| ### Public properties |
|---|---|
| `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 functions

### equals

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

### hashCode

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

## Public properties

### pageNum

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

```
open val pageNum: Int
```

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