<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIGraphicsPDFRenderer/init(bounds:format:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIGraphicsPDFRenderer(im)initWithBounds:format:"
  },
  "title" : "init(bounds:format:)"
}
-->

# init(bounds:format:)

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

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

## Parameters

`bounds`

The bounds of the Core Graphics context available to the renderer, with values in points.

`format`

A [`UIGraphicsPDFRendererFormat`](/documentation/UIKit/UIGraphicsPDFRendererFormat) object that encapsulates the format applied to the renderer’s context.

## Return Value

An initialized PDF graphics renderer.

## 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:)`](/documentation/UIKit/UIGraphicsRenderer/init(bounds:)) method present on the abstract superclass, [`UIGraphicsRenderer`](/documentation/UIKit/UIGraphicsRenderer).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)