# Helpers.rectToQuad()

```ts
rectToQuad(rect: Rect): Quad
```

A `Rect` as a `Quad`, its corners named as Acrobat writes them.

- Kind: static method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `rect` | `Rect` | A rectangle in page space. |

Returns `Quad`: Its four corners as `{ topLeft, topRight, bottomLeft, bottomRight }`.

```ts
const [first] = match.rects;
const quad = first ? rectToQuad(first) : null;
```

Part of [Helpers](https://kernstra.com/docs/web-sdk/api/helpers) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/helpers/recttoquad
