---
title: "draw(for:active:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfselection/draw(for:active:)"
---

# draw(for:active:)

Calls draw(for:with:active:) with a default value for box parameter.

## Declaration

```swift
func draw(for page: PDFPage, active: Bool)
```

## Discussion

Discussion The default value is kPDFDisplayBoxCropBox. If active is true, drawing uses selectedTextBackgroundColor. If false, it uses secondarySelectedControlColor.

## See Also

### Managing Selection Drawing

- [draw(for:with:active:)](pdfkit/pdfselection/draw(for:with:active:).md)
- [color](pdfkit/pdfselection/color.md)
