---
title: delegate
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfdocument/delegate
---

# delegate

The object acting as the delegate for the PDFDocument object.

## Declaration

```swift
weak var delegate: (any PDFDocumentDelegate)? { get set }
```

## See Also

### Setting the Delegate

- [PDFDocumentDelegate](pdfkit/pdfdocumentdelegate.md)
