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

# GoToAction

## Overview

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

GoToAction navigates to a page within the same document.

This type declares 5 methods for GoToAction objects in Go programs.
Available methods include: `ActionType`, `PageNum`, `SetPageNum`, `SetTop`, `Top`.
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. |
| `PageNum()` → `int` | PageNum returns the 1-based destination page number. |
| `Top()` → `float64` | Top returns the y-coordinate of the destination view. |
| `SetPageNum(n: int)` | SetPageNum updates the destination page number (1-based). |
| `SetTop(t: float64)` | SetTop updates the y-coordinate of the destination view. |

## See Also

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