Class

PDFAnnotationFreeText

A PDFAnnotationFreeText object displays text on a page.

Declaration

@interface PDFAnnotationFreeText : PDFAnnotation

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 and setContents: methods let you get and set the textual content for a PDFAnnotationFreeText object.

Topics

Managing Text Alignment

- alignment

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

- setAlignment:

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

Managing Font and Font Color

- font

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

- setFont:

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

- fontColor

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

- setFontColor:

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

Relationships

Inherits From

Conforms To

See Also

Annotation Types

PDFAnnotationButtonWidget

A PDFAnnotationButtonWidget object provides user interactivity on a page of a PDF document. There are three types of buttons available: push button, radio button, and checkbox.

Deprecated
PDFAnnotationChoiceWidget

A PDFAnnotationChoiceWidget object provides user interactivity on a page of a PDF document, in the form of pop-up menus and lists.

Deprecated
PDFAnnotationLine

A PDFAnnotationLine object displays a single line on a page.

Deprecated
PDFAnnotationMarkup

A PDFAnnotationMarkup object appears as highlighting, underlining, or a strikethrough style applied to the text of a document.

Deprecated
PDFAnnotationPopup

A PDFAnnotationPopup object provides user interactivity on a PDF page in the form of a pop-up menu.

Deprecated
PDFAnnotationStamp

A PDFAnnotationStamp object allows you to display a word or phrase, such as “Confidential,“ in a PDF page.

Deprecated
PDFAnnotationText

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

Deprecated
PDFAnnotationTextWidget

A PDFAnnotationTextWidget object allows you to manage the appearance and content of text fields.

Deprecated