Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Next Page > Hide TOC

PDFAnnotationText Class Reference

Inherits from
Conforms to
Framework
Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework
Availability
Available in Mac OS X v10.4 and later.
Declared in
PDFAnnotationText.h

Overview

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

Each PDFAnnotationText object has a PDFAnnotationPopup object associated with it. In its closed state, the annotation appears as an icon. In its open state, it displays as a pop-up window containing the text of the note. Note that your application must do the work to put up a window containing the text in response to a PDFViewAnnotationHitNotification. Currently, text annotations do not scale and rotate with the page.

Tasks

Managing the Annotation’s State

Managing the Annotation Icon’s Type

Instance Methods

iconType

Returns the icon type for the annotation.

- (PDFTextAnnotationIconType)iconType

Return Value

The icon type of the annotation. See “Constants” for a list of possible return values.

Availability
See Also
Declared In
PDFAnnotationText.h

setIconType:

Sets the icon type for the annotation.

- (void)setIconType:(PDFTextAnnotationIconType)type

Parameters
type

The icon type for the annotation. See “Constants” for a list of the available icon types.

Availability
See Also
Declared In
PDFAnnotationText.h

setWindowIsOpen:

Sets the open/closed state of the annotation to the specified value. (Deprecated. Call setIsOpen: on the annotation’s pop-up instead.)

- (void)setWindowIsOpen:(BOOL)isOpen

Discussion

This method does not actually open or close the annotation. Use it to record annotation state.

Availability
See Also
Declared In
PDFAnnotationText.h

windowIsOpen

Returns a Boolean value indicating whether the annotation’s note window is open. (Deprecated. Call isOpen on the annotation’s pop-up instead.)

- (BOOL)windowIsOpen

Availability
See Also
Declared In
PDFAnnotationText.h

Constants

Text annotations can use the following icon types:

Constant

Description

kPDFTextAnnotationIconComment

Comment annotation icon.

Available in Mac OS X v10.4 and later.

Declared in PDFAnnotationText.h

kPDFTextAnnotationIconKey

Key annotation icon.

Available in Mac OS X v10.4 and later.

Declared in PDFAnnotationText.h

kPDFTextAnnotationIconNote

Note annotation icon.

Available in Mac OS X v10.4 and later.

Declared in PDFAnnotationText.h

kPDFTextAnnotationIconHelp

Help annotation icon.

Available in Mac OS X v10.4 and later.

Declared in PDFAnnotationText.h

kPDFTextAnnotationIconNewParagraph

New Paragraph annotation icon.

Available in Mac OS X v10.4 and later.

Declared in PDFAnnotationText.h

kPDFTextAnnotationIconParagraph

Paragraph annotation icon.

Available in Mac OS X v10.4 and later.

Declared in PDFAnnotationText.h

kPDFTextAnnotationIconInsert

Insert annotation icon.

Available in Mac OS X v10.4 and later.

Declared in PDFAnnotationText.h



Next Page > Hide TOC


Last updated: 2007-12-11




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice