# PdfDocument.PageInfo

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

*** ** * ** ***


```
class PdfDocument.PageInfo
```

<br />

*** ** * ** ***

Represents information about a single page in the PDF document.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/pdf/PdfDocument.PageInfo#PageInfo(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List)( pageNum: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, formWidgetInfos: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo> )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo>` | `https://developer.android.com/reference/kotlin/androidx/pdf/PdfDocument.PageInfo#formWidgetInfos()` (Optional) A list of `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo` objects representing the form widgets present on the given `https://developer.android.com/reference/kotlin/androidx/pdf/PdfDocument.PageInfo#pageNum()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/PdfDocument.PageInfo#height()` The height of the page in points. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/PdfDocument.PageInfo#pageNum()` The page number (0-based). |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/PdfDocument.PageInfo#width()` The width of the page in points. |

## Public constructors

### PageInfo

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

```
PageInfo(
    pageNum: Int,
    height: Int,
    width: Int,
    formWidgetInfos: List<FormWidgetInfo> = emptyList()
)
```

## Public properties

### formWidgetInfos

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

```
val formWidgetInfos: List<FormWidgetInfo>
```

(Optional) A list of `https://developer.android.com/reference/kotlin/androidx/pdf/models/FormWidgetInfo` objects representing the form widgets present on the given `https://developer.android.com/reference/kotlin/androidx/pdf/PdfDocument.PageInfo#pageNum()`. This property is only populated if `https://developer.android.com/reference/kotlin/androidx/pdf/PdfDocument#PAGE_INFO_INCLUDE_FORM_WIDGET()` is set in the 'pageInfoFlags' passed to `https://developer.android.com/reference/kotlin/androidx/pdf/PdfDocument#getPageInfo(kotlin.Int)`. It will be empty if FormWidgetInfo is not requested or if there are no form widgets present on the page.

### height

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

```
val height: Int
```

The height of the page in points.

### pageNum

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

```
val pageNum: Int
```

The page number (0-based).

### width

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

```
val width: Int
```

The width of the page in points.