Mac OS X Reference Library Apple Developer Connection spyglass button

PDFActionNamed Class Reference

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

Overview

PDFActionNamed defines methods used to work with actions in PDF documents, some of which are named in the Adobe PDF Specification.

A PDFActionNamed object represents an action with a defined name, such as “Go back” or “Zoom in.“

Tasks

Accessing the Name of the Action

Initializing the Action

Instance Methods

initWithName:

Initializes the PDFActionName object with the specified named action.

- (id)initWithName:(PDFActionNamedName)name

Parameters
name

The action name used to initialize the named action.

Return Value

An initialized PDFActionNamed instance, or NULL if the object could not be initialized.

Discussion

See “Named Action Names” for the names of named actions you can specify.

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

name

Returns the name of the named action.

- (PDFActionNamedName)name

Return Value

The name of the named action.

Availability
  • Available in Mac OS X v10.5 and later.
See Also
Declared In
PDFActionNamed.h

setName:

Sets the name of the named action.

- (void)setName:(PDFActionNamedName)name

Parameters
name

The action name to which to set the named action.

Discussion

See “Named Action Names” for the names of named actions you can specify.

Availability
  • Available in Mac OS X v10.5 and later.
See Also
Declared In
PDFActionNamed.h

Constants

Named Action Names

Names of supported actions.

enum { kPDFActionNamedNone = 0,
   kPDFActionNamedNextPage = 1,
   kPDFActionNamedPreviousPage = 2,
   kPDFActionNamedFirstPage = 3,
   kPDFActionNamedLastPage = 4,
   kPDFActionNamedGoBack = 5,
   kPDFActionNamedGoForward = 6,
   kPDFActionNamedGoToPage = 7,
   kPDFActionNamedFind = 8,
   kPDFActionNamedPrint = 9,
   kPDFActionNamedZoomIn = 10,
   kPDFActionNamedZoomOut = 11 };
Constants
kPDFActionNamedNone

The action has no name.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedNextPage

The Next Page action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedPreviousPage

The Previous Page action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedFirstPage

The First Page action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedLastPage

The Last Page action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedGoBack

The Go Back action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedGoForward

The Go Forward action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedGoToPage

The Go to Page action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedFind

The Find action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedPrint

The Print action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedZoomIn

The Zoom In action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

kPDFActionNamedZoomOut

The Zoom Out action.

Available in Mac OS X v10.5 and later.

Declared in PDFActionNamed.h.

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


Last updated: 2007-12-11

Did this document help you? Yes It's good, but... Not helpful...