<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFAction",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PDFAction"
  },
  "title" : "PDFAction"
}
-->

# PDFAction

An action that is performed when, for example, a PDF annotation is activated or an outline item is clicked.

```
class PDFAction
```

## Overview

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`

## Topics

### Action Types

[`PDFActionGoTo`](/documentation/PDFKit/PDFActionGoTo)

`PDFActionGoTo`, a subclass of `PDFAction`, defines methods for getting and setting the destination of a go-to action.

[`PDFActionNamed`](/documentation/PDFKit/PDFActionNamed)

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

[`PDFActionRemoteGoTo`](/documentation/PDFKit/PDFActionRemoteGoTo)

`PDFActionRemoteGoTo`, a subclass of `PDFAction`, defines methods for getting and setting the destination of a go-to action that targets another document.

[`PDFActionResetForm`](/documentation/PDFKit/PDFActionResetForm)

`PDFActionResetForm`, a subclass of `PDFAction`, defines methods for getting and clearing fields in a PDF form.

[`PDFActionURL`](/documentation/PDFKit/PDFActionURL)

`PDFActionURL`, a subclass of `PDFAction`, defines methods for getting and setting the URL associated with a URL action.

[`PDFActionNamedName`](/documentation/PDFKit/PDFActionNamedName)

### Getting the Action Type

[`type`](/documentation/PDFKit/PDFAction/type)

Returns the type of the action.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)