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

*** ** * ** ***


```
class PdfPageTextContent : PdfPageContent
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.pdf.content.PdfPageContent](https://developer.android.com/reference/kotlin/androidx/pdf/content/PdfPageContent) ||
|   | ↳ | [androidx.pdf.content.PdfPageTextContent](https://developer.android.com/reference/kotlin/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/kotlin/androidx/pdf/content/PdfPageTextContent#PdfPageTextContent(kotlin.collections.List,kotlin.String)(bounds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/graphics/RectF.html>, text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/content/PdfPageTextContent#text()` : Text content within the bounds. |

### Inherited properties

From [androidx.pdf.content.PdfPageContent](https://developer.android.com/reference/kotlin/androidx/pdf/content/PdfPageContent) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/graphics/RectF.html>` `https://developer.android.com/reference/kotlin/androidx/pdf/content/PdfPageContent#bounds()`

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

## Public constructors

### PdfPageTextContent

```
PdfPageTextContent(bounds: List<RectF>, text: String)
```

| Parameters |
|---|---|
| `bounds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/graphics/RectF.html>` | : Bounds for the text content |
| `text: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | : Text content within the bounds. |

## Public properties

### text

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

```
val text: String
```

: Text content within the bounds.