---
title: beginPage()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uigraphicspdfrenderercontext/beginpage()
---

# beginPage()

Marks the beginning of a new page in the PDF context and configures it using default values.

## Declaration

```swift
func beginPage()
```

## Discussion

Discussion This function ends any previous page before beginning a new one. It sets the bounds of the new page to the bounds rectangle you supplied when you created the PDF renderer.

## See Also

### Marking new pages

- [beginPage(withBounds:pageInfo:)](uikit/uigraphicspdfrenderercontext/beginpage(withbounds:pageinfo:).md)
