# PdfDocument.PageInfo

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# PageInfo

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/graphics/pdf/PdfDocument.PageInfo "View this page in Java")  

```
class PageInfo
```

|---|----------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                         ||
| ↳ | [android.graphics.pdf.PdfDocument.PageInfo](https://developer.android.com/reference/kotlin/android/graphics/pdf/PdfDocument.PageInfo#) |

This class represents meta-data that describes a PDF[Page](https://developer.android.com/reference/kotlin/android/graphics/pdf/PdfDocument.Page).

## Summary

|                                                                                                               Nested classes                                                                                                                ||
|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   | [Builder](https://developer.android.com/reference/kotlin/android/graphics/pdf/PdfDocument.PageInfo.Builder) Builder for creating a[PageInfo](https://developer.android.com/reference/kotlin/android/graphics/pdf/PdfDocument.PageInfo#). |

|                                                                                                                                      Public methods                                                                                                                                      ||
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#)! | [getContentRect](https://developer.android.com/reference/kotlin/android/graphics/pdf/PdfDocument.PageInfo#getContentRect())`()` Get the content rectangle in PostScript points (1/72th of an inch). |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)          | [getPageHeight](https://developer.android.com/reference/kotlin/android/graphics/pdf/PdfDocument.PageInfo#getPageHeight())`()` Gets the page height in PostScript points (1/72th of an inch).        |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)          | [getPageNumber](https://developer.android.com/reference/kotlin/android/graphics/pdf/PdfDocument.PageInfo#getPageNumber())`()` Gets the page number.                                                 |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)          | [getPageWidth](https://developer.android.com/reference/kotlin/android/graphics/pdf/PdfDocument.PageInfo#getPageWidth())`()` Gets the page width in PostScript points (1/72th of an inch).           |

## Public methods

### getContentRect

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getContentRect(): Rect!
```

Get the content rectangle in PostScript points (1/72th of an inch). This is the area that contains the page content and is relative to the page top left.

|                                                   Return                                                    ||
|-------------------------------------------------------------------------------------|------------------------|
| [Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#)! | The content rectangle. |

### getPageHeight

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getPageHeight(): Int
```

Gets the page height in PostScript points (1/72th of an inch).

|                                            Return                                            ||
|----------------------------------------------------------------------------|------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | The page height. |

### getPageNumber

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getPageNumber(): Int
```

Gets the page number.

|                                            Return                                            ||
|----------------------------------------------------------------------------|------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | The page number. |

### getPageWidth

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getPageWidth(): Int
```

Gets the page width in PostScript points (1/72th of an inch).

|                                           Return                                            ||
|----------------------------------------------------------------------------|-----------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | The page width. |