---
title: "draw(_:to:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfview/draw(_:to:)"
---

# draw(_:to:)

Draw and render a visible page to a context.

## Declaration

```swift
func draw(_ page: PDFPage, to context: CGContext)
```

## See Also

### Drawing in a PDF Page

- [drawPagePost(_:to:)](pdfkit/pdfview/drawpagepost(_:to:).md)
