---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/namedaction
---

# NamedAction

## Overview

`NamedAction` is a type in Aspose.PDF FOSS for Go.

NamedAction triggers a built-in viewer command (FirstPage, Print, ...).

This type declares 3 methods for NamedAction objects in Go programs.
Available methods include: `ActionType`, `Name`, `SetName`.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

## Methods

| Signature | Description |
|-----------|-------------|
| `ActionType()` → `ActionType` | Returns the action type. |
| `Name()` → `NamedActionType` | Returns the name. |
| `SetName(n: NamedActionType)` | Sets the name value. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)