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

# PDFAnnotationFreeText

A `PDFAnnotationFreeText` object displays text on a page.

```
class PDFAnnotationFreeText
```

## Overview

Unlike a `PDFAnnotationText` object, a `PDFAnnotationFreeText` object has no open or closed state; its text is always visible. The text annotation performed in Preview uses `PDFAnnotationFreeText`.

The `PDFAnnotation` class’s [`contents`](/documentation/PDFKit/PDFAnnotation/contents) property lets you get and set the textual content for a `PDFAnnotationFreeText` object.

## Topics

### Managing Text Alignment

[`-  alignment`](/documentation/PDFKit/PDFAnnotationFreeText/alignment())

Returns the horizontal alignment of text within the bounds of the annotation.

[`-  setAlignment:`](/documentation/PDFKit/PDFAnnotationFreeText/setAlignment(_:))

Sets the horizontal alignment of text within the bounds of the annotation.

### Managing Font and Font Color

[`-  font`](/documentation/PDFKit/PDFAnnotationFreeText/font())

Returns the font used for the annotation’s text field.

[`-  setFont:`](/documentation/PDFKit/PDFAnnotationFreeText/setFont(_:))

Sets the font used in the text field of the annotation.

[`-  fontColor`](/documentation/PDFKit/PDFAnnotationFreeText/fontColor())

Returns the font color used in the text field of the annotation.

[`-  setFontColor:`](/documentation/PDFKit/PDFAnnotationFreeText/setFontColor(_:))

Sets the font color used in the text field of the annotation.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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