# writeGraphicsPdf (@salmonui/export/graphics)

> The writeGraphicsPdf function of @salmonui/export/graphics: Writes SVG drawings as a vector PDF, one page per drawing, each scaled to fit the page.

Canonical: https://salmonui.dev/docs/reference/export/graphics/writeGraphicsPdf

```ts
import { writeGraphicsPdf } from '@salmonui/export/graphics';
```

Entry index: https://salmonui.dev/docs/reference/export/graphics (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/export/graphics.md).

## Reference

Kind: function

```ts
function writeGraphicsPdf(pages: string | GraphicsPdfPage | readonly (string | GraphicsPdfPage)[], options?: GraphicsPdfOptions): Promise<GraphicsPdfFile>;
```

Writes SVG drawings as a vector PDF, one page per drawing, each scaled to fit the page.
