---
title: rotation
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfpage/rotation
---

# rotation

Sets the rotation angle for the page in degrees.

## Declaration

```swift
var rotation: Int { get set }
```

## Discussion

Discussion The rotation must be a positive or negative multiple of 90 (negative angles are converted to their positive equivalents; for example, -90 is changed to 270); otherwise this method throws an exception.

## See Also

### Getting Information About a Page

- [document](pdfkit/pdfpage/document.md)
- [label](pdfkit/pdfpage/label.md)
- [bounds(for:)](pdfkit/pdfpage/bounds(for:).md)
- [setBounds(_:for:)](pdfkit/pdfpage/setbounds(_:for:).md)
