<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.12.0"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFAnnotation/draw(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PDFAnnotation(im)drawWithBox:"
  },
  "title" : "draw(with:)"
}
-->

# draw(with:)

Draws the annotation on its associated page.

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

## Parameters

`box`

The bounding box to draw the annotation in.

## 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

[`bounds(for:)`](/documentation/PDFKit/PDFPage/bounds(for:))

Returns the bounds for the specified PDF display box.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)