<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.12.0"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFAnnotationText",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PDFAnnotationText"
  },
  "title" : "PDFAnnotationText"
}
-->

# PDFAnnotationText

A `PDFAnnotationText` object displays as an icon (such as a “sticky note”) attached to a specified point in the PDF document.

```
class PDFAnnotationText
```

## Overview

Each `PDFAnnotationText` object has a `PDFAnnotationPopup` object associated with it. In its closed state, the annotation appears as an icon. In its open state, it displays as a pop-up window containing the text of the note. Note that your application must do the work to put up a window containing the text in response to a [`PDFViewAnnotationHitNotification`](/documentation/PDFKit/PDFViewAnnotationHitNotification). Currently, text annotations do not scale and rotate with the page.

## Topics

### Managing the Annotation Icon’s Type

[`-  iconType`](/documentation/PDFKit/PDFAnnotationText/iconType())

Returns the icon type for the annotation.

[`-  setIconType:`](/documentation/PDFKit/PDFAnnotationText/setIconType(_:))

Sets the icon type for the annotation.

### Constants

[`PDFTextAnnotationIconType`](/documentation/PDFKit/PDFTextAnnotationIconType)

The types of icons that a text annotation can use.

## Relationships

### Conforms To

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`PDFAnnotation`](/documentation/PDFKit/PDFAnnotation)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)