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

Next Page > Hide TOC

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

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
Declared In
PDFActionNamed.h

name

Returns the name of the named action.

- (PDFActionNamedName)name

Return Value

The name of the named action.

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

kPDFActionNamedNextPage

The Next Page action.

kPDFActionNamedPreviousPage

The Previous Page action.

kPDFActionNamedFirstPage

The First Page action.

kPDFActionNamedLastPage

The Last Page action.

kPDFActionNamedGoBack

The Go Back action.

kPDFActionNamedGoForward

The Go Forward action.

kPDFActionNamedGoToPage

The Go to Page action.

kPDFActionNamedFind

The Find action.

kPDFActionNamedPrint

The Print action.

kPDFActionNamedZoomIn

The Zoom In action.

kPDFActionNamedZoomOut

The Zoom Out action.

Availability
Declared In
PDFActionNamed.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