# Helpers.rectFromEdges()

```ts
rectFromEdges(edges: RectEdges): Rect
```

A `Rect` from four edges, whichever way round the edges are given.

- Kind: static method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `edges` | `RectEdges` | `{ left, bottom, right, top }` — how a PDF file stores a rectangle, whichever way round the edges are given. |

Returns `Rect`: Its bottom-left corner and its size.

```ts
const rect = rectFromEdges({ left: 72, bottom: 700, right: 300, top: 720 });
```

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/rectfromedges
