---
title: "beginPDFPage(_:)"
framework: coregraphics
role: symbol
role_heading: Instance Method
path: "coregraphics/cgcontext/beginpdfpage(_:)"
---

# beginPDFPage(_:)

Begins a new page in a PDF graphics context.

## Declaration

```swift
func beginPDFPage(_ pageInfo: CFDictionary?)
```

## Parameters

- `pageInfo`: A dictionary that contains key-value pairs that define the page properties.

## Discussion

Discussion You must call the function endPDFPage() to signal the end of the page.

## See Also

### Managing a PDF Graphics Context

- [endPDFPage()](coregraphics/cgcontext/endpdfpage().md)
- [addDestination(_:at:)](coregraphics/cgcontext/adddestination(_:at:).md)
- [setDestination(_:for:)](coregraphics/cgcontext/setdestination(_:for:).md)
- [setURL(_:for:)](coregraphics/cgcontext/seturl(_:for:).md)
- [addDocumentMetadata(_:)](coregraphics/cgcontext/adddocumentmetadata(_:).md)
- [closePDF()](coregraphics/cgcontext/closepdf().md)
