---
title: "init(bounds:format:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uigraphicspdfrenderer/init(bounds:format:)"
---

# init(bounds:format:)

Creates a new graphics renderer with the specified bounds and format.

## Declaration

```swift
init(bounds: CGRect, format: UIGraphicsPDFRendererFormat)
```

## Parameters

- `bounds`: The bounds of the Core Graphics context available to the renderer, with values in points.
- `format`: A doc://com.apple.uikit/documentation/UIKit/UIGraphicsPDFRendererFormat object that encapsulates the format applied to the renderer’s context.

## Return Value

Return Value An initialized PDF graphics renderer.

## Discussion

Discussion Use this initializer to create a PDF renderer when you want to override the default format for the current device. Otherwise, use the init(bounds:) method present on the abstract superclass, UIGraphicsRenderer.
