<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 11.0.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFAnnotationSubtype",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:@T@PDFAnnotationSubtype"
  },
  "title" : "PDFAnnotationSubtype"
}
-->

# PDFAnnotationSubtype

The type of annotation, such as circle, text, or ink.

```
struct PDFAnnotationSubtype
```

## Topics

### Choosing an Annotation Subtype

[`PDFAnnotationSubtypeCircle`](/documentation/PDFKit/PDFAnnotationSubtype/circle)

An annotation that renders a circle shape.

[`PDFAnnotationSubtypeFreeText`](/documentation/PDFKit/PDFAnnotationSubtype/freeText)

An annotation that displays an editable text field.

[`PDFAnnotationSubtypeHighlight`](/documentation/PDFKit/PDFAnnotationSubtype/highlight)

An annotation that highlights text.

[`PDFAnnotationSubtypeInk`](/documentation/PDFKit/PDFAnnotationSubtype/ink)

An annotation that represents a freehand scribble.

[`PDFAnnotationSubtypeLine`](/documentation/PDFKit/PDFAnnotationSubtype/line)

An annotation that displays a single straight line.

[`PDFAnnotationSubtypeLink`](/documentation/PDFKit/PDFAnnotationSubtype/link)

An annotation that provides a hyperlink to a location in the document, or an action to perform when the user clicks or taps it.

[`PDFAnnotationSubtypePopup`](/documentation/PDFKit/PDFAnnotationSubtype/popup)

An annotation that displays text in a pop-up window for entry and editing.

[`PDFAnnotationSubtypeSquare`](/documentation/PDFKit/PDFAnnotationSubtype/square)

An annotation that displays a square shape.

[`PDFAnnotationSubtypeStamp`](/documentation/PDFKit/PDFAnnotationSubtype/stamp)

An annotation that displays text or a graphic as if a rubber stamp imprints it on the page.

[`PDFAnnotationSubtypeStrikeOut`](/documentation/PDFKit/PDFAnnotationSubtype/strikeOut)

An annotation that strikes out text.

[`PDFAnnotationSubtypeText`](/documentation/PDFKit/PDFAnnotationSubtype/text)

An annotation that displays a collapsible note that contains text.

[`PDFAnnotationSubtypeUnderline`](/documentation/PDFKit/PDFAnnotationSubtype/underline)

An annotation that underlines text.

[`PDFAnnotationSubtypeWidget`](/documentation/PDFKit/PDFAnnotationSubtype/widget)

An annotation that displays interactive form elements, including text or signature fields, radio buttons, checkboxes, push buttons, pop-ups, and tables.

### Creating an Annotation Subtype

[`init(rawValue:)`](/documentation/PDFKit/PDFAnnotationSubtype/init(rawValue:))

Creates an annotation subtype using the specified raw string.

## Relationships

### Conforms To

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

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

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

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

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

---

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)