---
title: PDFAnnotationFreeText
framework: pdfkit
role: symbol
role_heading: Class
path: pdfkit/pdfannotationfreetext
---

# PDFAnnotationFreeText

A PDFAnnotationFreeText object displays text on a page.

## Declaration

```swift
class PDFAnnotationFreeText
```

## Overview

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 property lets you get and set the textual content for a PDFAnnotationFreeText object.

## Topics

### Managing Text Alignment

- [alignment()](pdfkit/pdfannotationfreetext/alignment().md)
- [setAlignment(_:)](pdfkit/pdfannotationfreetext/setalignment(_:).md)

### Managing Font and Font Color

- [font()](pdfkit/pdfannotationfreetext/font().md)
- [setFont(_:)](pdfkit/pdfannotationfreetext/setfont(_:).md)
- [fontColor()](pdfkit/pdfannotationfreetext/fontcolor().md)
- [setFontColor(_:)](pdfkit/pdfannotationfreetext/setfontcolor(_:).md)

## Relationships

### Inherits From

- [PDFAnnotation](pdfkit/pdfannotation.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Deprecated Annotation Types

- [PDFAnnotationButtonWidget](pdfkit/pdfannotationbuttonwidget.md)
- [PDFAnnotationChoiceWidget](pdfkit/pdfannotationchoicewidget.md)
- [PDFAnnotationCircle](pdfkit/pdfannotationcircle.md)
- [PDFAnnotationInk](pdfkit/pdfannotationink.md)
- [PDFAnnotationLine](pdfkit/pdfannotationline.md)
- [PDFAnnotationLink](pdfkit/pdfannotationlink.md)
- [PDFAnnotationMarkup](pdfkit/pdfannotationmarkup.md)
- [PDFAnnotationPopup](pdfkit/pdfannotationpopup.md)
- [PDFAnnotationSquare](pdfkit/pdfannotationsquare.md)
- [PDFAnnotationStamp](pdfkit/pdfannotationstamp.md)
- [PDFAnnotationText](pdfkit/pdfannotationtext.md)
- [PDFAnnotationTextWidget](pdfkit/pdfannotationtextwidget.md)
