<!--
{
  "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/UIGraphicsPDFRendererFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIGraphicsPDFRendererFormat"
  },
  "title" : "UIGraphicsPDFRendererFormat"
}
-->

# UIGraphicsPDFRendererFormat

A set of drawing attributes that represents the configuration of a PDF renderer context.

```
class UIGraphicsPDFRendererFormat
```

## Overview

Use this subclass of [`UIGraphicsRendererFormat`](/documentation/UIKit/UIGraphicsRendererFormat) to provide context configuration parameters to a [`UIGraphicsPDFRenderer`](/documentation/UIKit/UIGraphicsPDFRenderer).

Create an instance and then add PDF configuration parameters to the [`documentInfo`](/documentation/UIKit/UIGraphicsPDFRendererFormat/documentInfo) dictionary.

The following code demonstrates how you can use a PDF renderer format object to specify the author of the PDFs created by a PDF renderer.

```swift
let format = UIGraphicsPDFRendererFormat()
format.documentInfo = [ kCGPDFContextAuthor as String : "Kate Bell" ]
let renderer =
  UIGraphicsPDFRenderer(bounds: CGRect(x: 0, y: 0, width: 500, height: 300),
                        format: format)
```

## Topics

### Getting the PDF document info

[`documentInfo`](/documentation/UIKit/UIGraphicsPDFRendererFormat/documentInfo)

A dictionary that specifies additional information to be associated with the PDFs created by the PDF renderer.

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`NSCopying`](/documentation/Foundation/NSCopying)

### Inherits From

[`UIGraphicsRendererFormat`](/documentation/UIKit/UIGraphicsRendererFormat)

---

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)