---
title: UIGraphicsPDFRendererContext
framework: uikit
role: symbol
role_heading: Class
path: uikit/uigraphicspdfrenderercontext
---

# UIGraphicsPDFRendererContext

The drawing environment for a PDF renderer.

## Declaration

```swift
class UIGraphicsPDFRendererContext
```

## Overview

Overview When using the UIGraphicsPDFRenderer drawing methods, you must pass a block of type UIGraphicsPDFRenderer.DrawingActions as an argument, which provides a UIGraphicsPDFRendererContext instance as an argument. Use the context object to access high-level drawing functions and the underlying Core Graphics context. note: UIGraphicsPDFRendererContext inherits much of its functionality from its abstract superclass UIGraphicsRendererContext. To learn how to use a UIGraphicsPDFRendererContext object in combination with a PDF renderer, see Creating a graphics PDF renderer.

## Topics

### Marking new pages

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

### Getting the PDF bounds

- [pdfContextBounds](uikit/uigraphicspdfrenderercontext/pdfcontextbounds.md)

### Managing destinations

- [addDestination(withName:at:)](uikit/uigraphicspdfrenderercontext/adddestination(withname:at:).md)
- [setDestinationWithName(_:for:)](uikit/uigraphicspdfrenderercontext/setdestinationwithname(_:for:).md)
- [setURL(_:for:)](uikit/uigraphicspdfrenderercontext/seturl(_:for:).md)

## Relationships

### Inherits From

- [UIGraphicsRendererContext](uikit/uigraphicsrenderercontext.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Graphics contexts

- [UIGraphicsRenderer](uikit/uigraphicsrenderer.md)
- [UIGraphicsRendererContext](uikit/uigraphicsrenderercontext.md)
- [UIGraphicsRendererFormat](uikit/uigraphicsrendererformat.md)
- [UIGraphicsImageRenderer](uikit/uigraphicsimagerenderer.md)
- [UIGraphicsImageRendererContext](uikit/uigraphicsimagerenderercontext.md)
- [UIGraphicsImageRendererFormat](uikit/uigraphicsimagerendererformat.md)
- [UIGraphicsPDFRenderer](uikit/uigraphicspdfrenderer.md)
- [UIGraphicsPDFRendererFormat](uikit/uigraphicspdfrendererformat.md)
