# PdfPageTextContent

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/PdfPageTextContent.kt+class:androidx.pdf.content.PdfPageTextContent) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
public final class PdfPageTextContent 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.PdfPageTextContent](https://developer.android.com/reference/androidx/pdf/content/PdfPageTextContent) |

*** ** * ** ***

Represents a continuous stream of text in a page of a PDF document in the order of viewing.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/pdf/content/PdfPageTextContent#PdfPageTextContent(kotlin.collections.List,kotlin.String)( @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/java/lang/String.html text )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/pdf/content/PdfPageTextContent#getText()()` : Text content within the bounds. |

### 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

### PdfPageTextContent

```
public PdfPageTextContent(
    @NonNull List<@NonNull RectF> bounds,
    @NonNull String text
)
```

| 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` | : Bounds for the text content |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html text` | : Text content within the bounds. |

## Public methods

### getText

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

```
public final @NonNull String getText()
```

: Text content within the bounds.