PDFAction Class Reference

Inherits from
Conforms to
Framework
Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework
Availability
Available in OS X v10.5 and later.
Declared in
PDFAction.h
Related sample code

Overview

PDFAction, a subclass of NSObject, represents an action that is performed when, for example, a PDF annotation is activated or an outline item is clicked.

A PDFAction object represents an action associated with a PDF element, such as an annotation or a link, that the viewer application can perform. See the Adobe PDF Specification for more about actions and action types.

PDFAction is an abstract superclass of the following concrete classes:

Tasks

Getting the Action Type

Instance Methods

type

Returns the type of the action.

- (NSString *)type
Return Value

The type of the PDF action.

Discussion

The PDF action type returned by this method may not correspond precisely to the name of a PDFAction subclass. For example, a PDFActionURL object might return “URI” or “Launch,” depending on the original action as defined by the Adobe PDF Specification. In the PDF Kit, these two actions are handled in the single PDFActionURL subclass, and the more familiar term “URL” is used instead.

Availability
  • Available in OS X v10.5 and later.
Declared In
PDFAction.h