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

# init(bounds:forType:withProperties:)

Creates a PDF annotation with the specified bounds, type, and optional properties.

## Declaration

```swift
init(bounds: CGRect, forType annotationType: PDFAnnotationSubtype, withProperties properties: [AnyHashable : Any]?)
```

```swift
init(bounds: NSRect, forType annotationType: PDFAnnotationSubtype, withProperties properties: [AnyHashable : Any]?)
```

## Parameters

- `bounds`: The bounding box of the annotation, in page-space coordinates.
- `annotationType`: The subtype of the annotation, such as text, link, or line.
- `properties`: A dictionary that contains properties of the annotation.

## See Also

### Creating an Annotation

- [PDFAnnotationSubtype](pdfkit/pdfannotationsubtype.md)
