---
title: "OrientationMethod"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/type-aliases/orientationmethod/"
---

# OrientationMethod

```ts
type OrientationMethod = "rotate" | "swapBox";
```

Defined in: [packages/sdk/src/transaction.ts:261](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/transaction.ts#L261)

How `setOrientation` turns a page: `"rotate"` (the default) adds a quarter turn to `/Rotate`;
`"swapBox"` swaps the paper's sides and turns the content into it, for tools that ignore
`/Rotate`.

## Since

0.4.0
