Mac Developer Library

Developer

Quartz Framework Reference PDFAction Class Reference

Options
Deployment Target:

On This Page
Language:

PDFAction

Conforms To


Import Statement


Swift

import Quartz

Objective-C

@import Quartz;

Availability


Available in OS X v10.5 and later.

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:

  • PDFActionGoTo

  • PDFActionNamed

  • PDFActionRemoteGoTo

  • PDFActionResetForm

  • PDFActionURL

  • Returns the type of the action.

    Declaration

    Swift

    func type() -> String!

    Objective-C

    - (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.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.5 and later.