# PdfPageGotoLinkContent

Artifact: [androidx.pdf:pdf-core](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/content/PdfPageGotoLinkContent.kt+class:androidx.pdf.content.PdfPageGotoLinkContent) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
public final class PdfPageGotoLinkContent extends PdfPageContent
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.pdf.content.PdfPageContent](https://developer.android.com/reference/androidx/pdf/content/PdfPageContent) ||
|   | ↳ | [androidx.pdf.content.PdfPageGotoLinkContent](https://developer.android.com/reference/androidx/pdf/content/PdfPageGotoLinkContent) |

*** ** * ** ***

Represents the content associated with a goto link on a page in the PDF document. Goto Link is an internal navigation link which directs the user to a different location within the same pdf document

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/pdf/content/PdfPageGotoLinkContent.Destination` Creates a new instance of PdfPageGotoLinkContent.Destination using the page number, x coordinate, and y coordinate of the destination where goto link is directing, and the zoom factor of the page when goto link takes to the destination |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/pdf/content/PdfPageGotoLinkContent#PdfPageGotoLinkContent(kotlin.collections.List,androidx.pdf.content.PdfPageGotoLinkContent.Destination)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/RectF.html> bounds, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/content/PdfPageGotoLinkContent.Destination destination )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/content/PdfPageGotoLinkContent.Destination` | `https://developer.android.com/reference/androidx/pdf/content/PdfPageGotoLinkContent#getDestination()()` : `https://developer.android.com/reference/androidx/pdf/content/PdfPageGotoLinkContent.Destination` where the goto link is directing. |

### Inherited methods

From [androidx.pdf.content.PdfPageContent](https://developer.android.com/reference/androidx/pdf/content/PdfPageContent) `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/RectF.html>` `https://developer.android.com/reference/androidx/pdf/content/PdfPageContent#getBounds()()`

: A list of rectangles defining the content's bounding boxes in PDF coordinates.

## Public constructors

### PdfPageGotoLinkContent

```
public PdfPageGotoLinkContent(
    @NonNull List<@NonNull RectF> bounds,
    @NonNull PdfPageGotoLinkContent.Destination destination
)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/RectF.html> bounds` | : A list of rectangles defining the clickable area of the link. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/content/PdfPageGotoLinkContent.Destination destination` | : `https://developer.android.com/reference/androidx/pdf/content/PdfPageGotoLinkContent.Destination` where the goto link is directing. |

## Public methods

### getDestination

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
public final @NonNull PdfPageGotoLinkContent.Destination getDestination()
```

: `https://developer.android.com/reference/androidx/pdf/content/PdfPageGotoLinkContent.Destination` where the goto link is directing.