# PDFDocument.attachments

```ts
get attachments(): AttachmentsApi
```

Embedded files — list, read, add, remove. Without the `extract` feature every name `list()` returns is `''` and `data()` throws `FEATURE_NOT_LICENSED`; `add()` and `delete()` need `edit-pages`. See [`AttachmentsApi`](https://kernstra.com/docs/web-sdk/api/doc-attachments).

- Kind: getter
- Since: 1.0.0

Returns `AttachmentsApi`

```ts
const files = await doc.attachments.list();
```

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

Web page: https://kernstra.com/docs/web-sdk/api/pdfdocument/attachments
