<!--
{
  "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/DrawingActions",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIGraphicsPDFDrawingActions"
  },
  "title" : "UIGraphicsPDFRenderer.DrawingActions"
}
-->

# UIGraphicsPDFRenderer.DrawingActions

A closure for drawing PDF content.

```
typealias DrawingActions = (UIGraphicsPDFRendererContext) -> Void
```

## Discussion

`UIGraphicsPDFDrawingActions` defines a block type that takes a [`UIGraphicsPDFRendererContext`](/documentation/UIKit/UIGraphicsPDFRendererContext) object as an argument and has no return value.

You provide a block of this type as an argument to the PDF drawing methods on [`UIGraphicsPDFRenderer`](/documentation/UIKit/UIGraphicsPDFRenderer). Your block should use the provided PDF renderer context to perform the drawing operations you want the renderer to execute.

See [`Creating a PDF with a PDF renderer`](/documentation/UIKit/UIGraphicsPDFRenderer#Creating-a-PDF-with-a-PDF-renderer) for an example use of a `UIGraphicsPDFDrawingActions` block.

---

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)