Class

PDFAnnotationTextWidget

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

Declaration

@interface PDFAnnotationTextWidget : PDFAnnotation

Overview

PDFAnnotationTextWidget objects support interactive forms in a PDF document. This object is comparable to an editable NSTextField in Cocoa or an edit text view in Carbon.

Topics

Working with Annotation Strings

- stringValue

Returns the string assigned to the annotation.

- setStringValue:

Sets the string for the annotation.

- maximumLength

Returns the maximum number of characters allowed in the annotation string.

- setMaximumLength:

Sets the maximum number of characters allowed in the annotation string.

Managing the 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 for the annotation’s text field.

- setFontColor:

Sets the font color used for the annotation’s text field.

Managing Background Color, Alignment, and Rotation

- backgroundColor

Returns the background color of the annotation text field.

- setBackgroundColor:

Sets the background color of the annotation text field.

- alignment

Returns the text alignment setting for the annotation.

- setAlignment:

Sets the text alignment for the annotation.

- rotation

Returns the rotation angle of the annotation text field in degrees.

- setRotation:

Sets the rotation angle of the annotation text field in degrees.

Working with Field Names

- fieldName

Returns the internal name for the annotation text field.

- setFieldName:

Sets the internal field name for the annotation text field.

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
PDFAnnotationFreeText

A PDFAnnotationFreeText object displays text on a page.

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