---
title: "init(bounds:)"
framework: pdfkit
role: symbol
role_heading: Initializer
path: "pdfkit/pdfannotation/init(bounds:)"
---

# init(bounds:)

Creates a PDF annotation object.

## Declaration

```swift
convenience init(bounds: NSRect)
```

## Parameters

- `bounds`: The bounding box of the annotation in page-space coordinates.

## Return Value

Return Value An initialized PDFAnnotation instance, or NULL if the object can’t initialize.

## Discussion

Discussion Subclasses of PDFAnnotation use this method to initialize annotation instances. Provide bounds in page-space coordinates. Invoking initWithBounds: directly on a PDFAnnotation object creates an illegal NULL type. Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page.

## See Also

### Deprecated Methods

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