---
title: classForPage()
framework: pdfkit
role: symbol
role_heading: Instance Method
path: pdfkit/pdfdocumentdelegate/classforpage()
---

# classForPage()

Returns a PDFPage subclass for a page object.

## Declaration

```swift
optional func classForPage() -> AnyClass
```

## Mentioned in

Adding Custom Graphics to a PDF

## See Also

### Wrapping Document Elements

- [class(forAnnotationClass:)](pdfkit/pdfdocumentdelegate/class(forannotationclass:).md)
- [class(forAnnotationType:)](pdfkit/pdfdocumentdelegate/class(forannotationtype:).md)
