---
title: "draw(with:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfannotation/draw(with:)"
---

# draw(with:)

Draws the annotation on its associated page.

## Declaration

```swift
func draw(with box: PDFDisplayBox)
```

## Parameters

- `box`: The bounding box to draw the annotation in.

## Mentioned in

Adding Custom Graphics to a PDF

## Discussion

Discussion The annotation is drawn relative to the origin of box in page-space coordinates. Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page.

## See Also

### Related Documentation

- [bounds(for:)](pdfkit/pdfpage/bounds(for:).md)

### Deprecated Methods

- [init(bounds:)](pdfkit/pdfannotation/init(bounds:).md)
- [init(dictionary:forPage:)](pdfkit/pdfannotation/init(dictionary:forpage:).md)
- [removeAllAppearanceStreams()](pdfkit/pdfannotation/removeallappearancestreams().md)
