CPDFFreeTextAnnotation Class Reference

Inherits from CPDFAnnotation : NSObject
Declared in CPDFFreeTextAnnotation.h

Overview

A CPDFFreeTextAnnotation object displays text on a page.

The CPDFAnnotation class’s contents and setContents: methods let you get and set the textual content for a CPDFFreeTextAnnotation object.

  font

Method to get / set the font used for the annotation’s text field.

@property (nonatomic, retain) CPDFKitPlatformFont *font

Discussion

Method to get / set the font used for the annotation’s text field.

Declared In

CPDFFreeTextAnnotation.h

  fontColor

Method to get / set the font color used in the text field of the annotation.

@property (nonatomic, retain) CPDFKitPlatformColor *fontColor

Discussion

Method to get / set the font color used in the text field of the annotation.

Declared In

CPDFFreeTextAnnotation.h

  alignment

Method to get / set the horizontal alignment of text within the bounds of the annotation.

@property (nonatomic, assign) NSTextAlignment alignment

Discussion

Method to get / set the horizontal alignment of text within the bounds of the annotation.

Supported values are NSLeftTextAlignment, NSRightTextAlignment, and NSCenterTextAlignment.

Declared In

CPDFFreeTextAnnotation.h