---
title: "AttachFileOptions"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/interfaces/attachfileoptions/"
---

# AttachFileOptions

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

Options for [Document.attachFile](/reference/sdk/classes/document.md#attachfile): the file's `description`, when it was made
(`created`) and last changed (`modified`), PDF dates from your clock, what it is associated
with (`attachTo`, the document's list only by default) and how (`relationship`, unspecified by
default). A PDF/A-3 file asks for `attachTo`, `modified` and a MIME type.

## Since

0.6.0

## Properties

### attachTo?

```ts
readonly attachTo?: AttachTarget;
```

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

***

### created?

```ts
readonly created?: string;
```

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

***

### description?

```ts
readonly description?: string;
```

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

***

### modified?

```ts
readonly modified?: string;
```

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

***

### relationship?

```ts
readonly relationship?: AttachmentRelationship;
```

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