---
title: "rectForPage(at:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiprintformatter/rectforpage(at:)"
---

# rectForPage(at:)

Returns the area that encloses a specified page of content.

## Declaration

```swift
func rectForPage(at pageIndex: Int) -> CGRect
```

## Parameters

- `pageIndex`: The index number of a page.

## Return Value

Return Value A rectangle enclosing the content area for page pageIndex.

## Discussion

Discussion Returns CGRectZero if the print formatter draws no content on the specified page.

## See Also

### Drawing the content

- [draw(in:forPageAt:)](uikit/uiprintformatter/draw(in:forpageat:).md)
