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

# PathSpec

```ts
type PathSpec = PathSpecJs;
```

Defined in: [packages/sdk/src/types.ts:2018](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/types.ts#L2018)

A shape's path in page space: `{ line: { from, to } }`, `{ rect: { rect, radius? } }`,
`{ ellipse: { rect } }` or `{ polygon: { points, closed? } }`.

## Since

0.7.0
